generated from jCloud/repository-template
Rename module _utils to utils
This commit is contained in:
@@ -3,10 +3,10 @@ import pytest
|
||||
import pathlib
|
||||
|
||||
@pytest.mark.parametrize('path,expected', [
|
||||
('tests/unit/_utils/test_directory/', 'tests/unit/_utils/test_directory'),
|
||||
('tests/unit/_utils/test_directory', 'tests/unit/_utils/test_directory'),
|
||||
('tests/unit/_utils/', 'tests/unit/_utils'),
|
||||
('tests/unit/_utils', 'tests/unit/_utils'),
|
||||
('tests/unit/utils/test_directory/', 'tests/unit/utils/test_directory'),
|
||||
('tests/unit/utils/test_directory', 'tests/unit/utils/test_directory'),
|
||||
('tests/unit/utils/', 'tests/unit/utils'),
|
||||
('tests/unit/utils', 'tests/unit/utils'),
|
||||
('/', '/'),
|
||||
('./', '.'),
|
||||
('.', '.'),
|
||||
@@ -17,8 +17,8 @@ def test_ExistingDirectory(path, expected):
|
||||
assert ExistingDirectory(path).as_posix() == expected
|
||||
|
||||
@pytest.mark.parametrize('path,expected_exception,expected_exception_message', [
|
||||
('tests/unit/_utils/does_not_exist/', FileNotFoundError, '[Errno 2] no such file or directory: \'tests/unit/_utils/does_not_exist/\''),
|
||||
('tests/unit/_utils/does_not_exist', FileNotFoundError, '[Errno 2] no such file or directory: \'tests/unit/_utils/does_not_exist\''),
|
||||
('tests/unit/utils/does_not_exist/', FileNotFoundError, '[Errno 2] no such file or directory: \'tests/unit/utils/does_not_exist/\''),
|
||||
('tests/unit/utils/does_not_exist', FileNotFoundError, '[Errno 2] no such file or directory: \'tests/unit/utils/does_not_exist\''),
|
||||
('', FileNotFoundError, '[Errno 2] no such file or directory: \'\''),
|
||||
('README.md', NotADirectoryError, '[Errno 20] not a directory: \'README.md\''),
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user