Exemple #1
0
def test_fail__valid_abs_path__dir(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_abs_path(arg, type="dir"))
Exemple #2
0
def test_fail__valid_abs_path(arg: Any) -> None:
    with pytest.raises(ValidatorError):
        print(valid_abs_path(arg))
Exemple #3
0
def test_ok__valid_abs_path__dir(arg: Any, retval: str) -> None:
    assert valid_abs_path(arg, type="dir") == retval
Exemple #4
0
def test_ok__valid_abs_path(arg: Any, retval: str) -> None:
    assert valid_abs_path(arg) == retval