generated from jCloud/repository-template
style: ensure trailing newlines
This commit is contained in:
48 files changed
+48
-48
No files matched your search
@@ -39,4 +39,4 @@ def test_ExistingDirectory(path, expected):
|
||||
def test_ExistingDirectory_exceptions(path, expected_exception, expected_exception_message):
|
||||
with pytest.raises(expected_exception) as exc_info:
|
||||
ExistingDirectory(path)
|
||||
assert str(exc_info.value) == expected_exception_message
|
||||
assert str(exc_info.value) == expected_exception_message
|
||||
@@ -32,4 +32,4 @@ def test_ExistingDirectory(path, expected):
|
||||
def test_ExistingDirectory_exceptions(path, expected_exception, expected_exception_message):
|
||||
with pytest.raises(expected_exception) as exc_info:
|
||||
ExistingFile(path)
|
||||
assert str(exc_info.value) == expected_exception_message
|
||||
assert str(exc_info.value) == expected_exception_message
|
||||
@@ -40,4 +40,4 @@ def test_assert_that_is_instance(obj, class_or_tuple):
|
||||
def test_assert_that_is_instance_exceptions(obj, class_or_tuple, expected_exception_msg):
|
||||
with pytest.raises(TypeError) as exc_info:
|
||||
assert_that_is_instance(obj, class_or_tuple)
|
||||
assert str(exc_info.value) == expected_exception_msg
|
||||
assert str(exc_info.value) == expected_exception_msg
|
||||
@@ -73,4 +73,4 @@ import pathlib
|
||||
|
||||
])
|
||||
def test_get_relative_path_segments(path, root, expected):
|
||||
assert get_relative_path_segments(path, root) == expected
|
||||
assert get_relative_path_segments(path, root) == expected
|
||||
@@ -51,4 +51,4 @@ import pytest
|
||||
([1, 2, 3, 42, 'a', 23], 'and', '\'', '\'1\', \'2\', \'3\', \'42\', \'a\' and \'23\''),
|
||||
])
|
||||
def test_human_readable_list(ls, final_separator, quotation_mark, expected):
|
||||
assert human_readable_list(ls, final_separator, quotation_mark) == expected
|
||||
assert human_readable_list(ls, final_separator, quotation_mark) == expected
|
||||
@@ -27,4 +27,4 @@ import pytest
|
||||
('a', 'a'),
|
||||
])
|
||||
def test_non_empty_str(value, expected):
|
||||
assert non_empty_str(value) == expected
|
||||
assert non_empty_str(value) == expected
|
||||
Reference in new issue
Block a user