mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-01-26 19:29:54 +00:00
test: args test
This commit is contained in:
14
tests/test_args.py
Normal file
14
tests/test_args.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user