We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc0037 commit 971781eCopy full SHA for 971781e
1 file changed
tests/client/contexts/test_fib.py
@@ -14,6 +14,7 @@
14
_file_transferred_to,
15
_get_source,
16
_number_from_name,
17
+ _parse_boolean,
18
)
19
20
# Mock session values
@@ -407,6 +408,26 @@ def test_number_from_name(test_params: tuple[str, int]):
407
408
assert _number_from_name(name) == number
409
410
411
+@pytest.mark.parametrize(
412
+ "test_params",
413
+ ( # Input | Expected output
414
+ ("True", True),
415
+ ("true", True),
416
+ ("T", True),
417
+ ("t", True),
418
+ ("1", True),
419
+ ("False", False),
420
+ ("false", False),
421
+ ("F", False),
422
+ ("f", False),
423
+ ("0", False),
424
+ ),
425
+)
426
+def test_parse_boolean(test_params: tuple[str, bool]):
427
+ text, expected_result = test_params
428
+ assert _parse_boolean(text) == expected_result
429
+
430
431
def test_get_source(
432
tmp_path: Path,
433
visit_dir: Path,
0 commit comments