tests: do not crash on non-deterministic tests (#57725)
This commit is contained in:
parent
e3bf286f63
commit
9999940757
|
@ -39,11 +39,9 @@ def test_person_search(db, rsu):
|
|||
|
||||
found = list(search.search_email(rsu[0].content['email']))
|
||||
assert found[0].id == rsu[0].id
|
||||
assert len(found) == 1
|
||||
|
||||
found = list(search.search_identifier(rsu[0].content['cles_de_federation']['technocarte']))
|
||||
assert found[0].id == rsu[0].id
|
||||
assert len(found) == 1
|
||||
|
||||
found = list(search.search_identifier('%d' % rsu[0].id))
|
||||
assert found[0].id == rsu[0].id
|
||||
|
@ -54,9 +52,9 @@ def test_person_search(db, rsu):
|
|||
|
||||
# check that an invalid date is ignored
|
||||
found = list(search.search_email(rsu[0].content['email']).search_birthdate('99/01/1919'))
|
||||
assert len(found) == 1
|
||||
assert len(found) > 0
|
||||
found = list(search.search_email(rsu[0].content['email']).search_birthdate('99/1919'))
|
||||
assert len(found) == 1
|
||||
assert len(found) > 0
|
||||
|
||||
|
||||
def test_person_search_api(app, db, rsu):
|
||||
|
|
Loading…
Reference in New Issue