Skip to content

Commit aa4c61e

Browse files
kurtmckeemichaelmior
authored andcommitted
Remove unused code from the test suite
1 parent 86d3f21 commit aa4c61e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/helpers.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,15 @@ def assert_value_equality(results, expected_values):
2121
def assert_full_path_equality(results, expected_full_paths):
2222
"""Assert equality between two objects.
2323
24-
*results* must be a list of results as returned by `.find()` methods.
24+
*results* must be a list or set of results as returned by `.find()` methods.
2525
2626
If *expected_full_paths* is a list, then path equality and ordering will be checked.
2727
If *expected_full_paths* is a set, then path equality and length will be checked.
28-
Otherwise, the full path of the result will be compared to the expected full path.
2928
"""
3029

3130
full_paths = [str(result.full_path) for result in results]
3231
if isinstance(expected_full_paths, list):
3332
assert full_paths == expected_full_paths, full_paths
34-
elif isinstance(expected_full_paths, set):
33+
else: # isinstance(expected_full_paths, set):
3534
assert len(full_paths) == len(expected_full_paths)
3635
assert set(full_paths) == expected_full_paths
37-
else:
38-
assert str(results.full_path) == expected_full_paths

0 commit comments

Comments
 (0)