tests: la recherche sur les emails est approximative à Nanterre il ne sert à rien de vérifier qu'il n'y a qu'une seule valeur renvoyée

This commit is contained in:
Benjamin Dauvergne 2017-04-06 20:04:01 +02:00
parent 9960472a9b
commit 8bd2be638d
2 changed files with 1 additions and 2 deletions

View File

@ -36,7 +36,7 @@ def rsu(rsu_schema):
for i in range(1000):
individu = {}
individu['genre'] = genre = sexes[random.randint(0, 2)]
individu['email'] = str(i) + fake.email()
individu['email'] = fake.email()
if genre == 'femme':
individu['prenoms'] = fake.first_name_female()
individu['nom_de_naissance'] = fake.last_name_female()

View File

@ -37,7 +37,6 @@ def test_person_search(db, rsu):
found = list(search.search_identifier('%d' % rsu[0].id))
assert found[0].id == rsu[0].id
assert len(found) == 1
@pytest.mark.django_db(True)