style: ensure trailing newlines

This commit is contained in:
jakob.scheid committed 2026-09-01 16:54:03 +02:00
1 parent 3a05718612
commit 3428c54d99
48 files changed
+48 -48

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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