mirror of
https://github.com/facefusion/facefusion.git
synced 2026-10-12 00:28:41 +02:00
Follow the config parser way part2
This commit is contained in:
1 parent
b4e54e6502
commit
3250f39708
12 files changed
+86
-84
No files matched your search
@@ -49,17 +49,17 @@ def before_all() -> None:
|
||||
|
||||
|
||||
def test_get_str_value() -> None:
|
||||
assert config.get_str_value('str.valid') == 'a'
|
||||
assert config.get_str_value('str.unset', 'b') == 'b'
|
||||
assert config.get_str_value('str.unset') is None
|
||||
assert config.get_str_value('str.invalid') is None
|
||||
assert config.get_str_value('str', 'valid') == 'a'
|
||||
assert config.get_str_value('str', 'unset', 'b') == 'b'
|
||||
assert config.get_str_value('str', 'unset') is None
|
||||
assert config.get_str_value('str', 'invalid') is None
|
||||
|
||||
|
||||
def test_get_int_value() -> None:
|
||||
assert config.get_int_value('int.valid') == 1
|
||||
assert config.get_int_value('int.unset', '1') == 1
|
||||
assert config.get_int_value('int.unset') is None
|
||||
assert config.get_int_value('int.invalid') is None
|
||||
assert config.get_int_value('int', 'valid') == 1
|
||||
assert config.get_int_value('int', 'unset', '1') == 1
|
||||
assert config.get_int_value('int', 'unset') is None
|
||||
assert config.get_int_value('int', 'invalid') is None
|
||||
|
||||
|
||||
def test_get_float_value() -> None:
|
||||
|
||||
Reference in new issue
Block a user