Add final test case for path checking
This commit is contained in:
parent
968237bec0
commit
b1d47c8aae
1 changed files with 7 additions and 0 deletions
|
|
@ -119,6 +119,13 @@ def test_make_path_safe_reserved_in_components(caplog, path):
|
|||
)
|
||||
|
||||
|
||||
def test_make_path_safe_reserved_name_components(caplog):
|
||||
"""Test reserved names are okay as part of a larger dir name."""
|
||||
with caplog.at_level(logging.WARNING):
|
||||
assert make_path_safe("chilli con carne/recipe")[0] == "chilli con carne/recipe"
|
||||
assert len(caplog.records) == 0
|
||||
|
||||
|
||||
def test_make_path_safe_trailing_space_in_components(caplog):
|
||||
"""Test trailing spaces in path components."""
|
||||
with caplog.at_level(logging.WARNING):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue