From 48af2214cc915ac97cd098834b3e08a03093b5ea Mon Sep 17 00:00:00 2001 From: Dowon Date: Sun, 14 Apr 2024 17:13:53 +0900 Subject: [PATCH] test: args test --- tests/test_args.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/test_args.py diff --git a/tests/test_args.py b/tests/test_args.py new file mode 100644 index 0000000..89b0c2b --- /dev/null +++ b/tests/test_args.py @@ -0,0 +1,14 @@ +from __future__ import annotations + +from adetailer.args import ALL_ARGS, ADetailerArgs + + +def test_all_args() -> None: + args = ADetailerArgs() + for attr, _ in ALL_ARGS: + assert hasattr(args, attr), attr + + for attr, _ in args: + if attr == "is_api": + continue + assert attr in ALL_ARGS.attrs, attr