Skip to content
Snippets Groups Projects
Commit a2baf4e6 authored by florian's avatar florian
Browse files

STY: autopep'd

parent 82203f50
Branches
Tags
2 merge requests!53Release 0.1,!21F use substitution templates
Pipeline #22939 passed
...@@ -184,12 +184,15 @@ def test_crawler_update_list(crawler, ident): ...@@ -184,12 +184,15 @@ def test_crawler_update_list(crawler, ident):
# If the following assertions fail, that is a hint, that the test file records.xml has changed # If the following assertions fail, that is a hint, that the test file records.xml has changed
# and this needs to be updated: # and this needs to be updated:
assert len(ident.get_records()) == 18 assert len(ident.get_records()) == 18
assert len([r for r in ident.get_records() assert len(
if r.parents[0].name == "Person"]) == 5 [r for r in ident.get_records() if r.parents[0].name == "Person"]
assert len([r for r in ident.get_records() ) == 5
if r.parents[0].name == "Measurement"]) == 11 assert len(
assert len([r for r in ident.get_records() [r for r in ident.get_records() if r.parents[0].name == "Measurement"]
if r.parents[0].name == "Project"]) == 2 ) == 11
assert len(
[r for r in ident.get_records() if r.parents[0].name == "Project"]
) == 2
# The crawler contains lots of duplicates, because identifiables have not been resolved yet: # The crawler contains lots of duplicates, because identifiables have not been resolved yet:
assert len(ident.get_records()) != len(crawler.updateList) assert len(ident.get_records()) != len(crawler.updateList)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment