File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,15 @@ def assert_value_equality(results, expected_values):
2121def 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
You can’t perform that action at this time.
0 commit comments