Skip to content

Commit

Permalink
Corrige un test qui pouvait générer une incohérence
Browse files Browse the repository at this point in the history
Le test pouvait générer structure préleveuse "Exploitant" sachant que le prélèvement est officiel (impossible d'après règle métier - cf. méthode clean du model Prelevement)
  • Loading branch information
alanzirek committed Feb 27, 2025
1 parent 5f66c8d commit 0ca131d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sv/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_invalid_wgs84_latitude(fiche_detection):
def test_numero_rapport_inspection_format_valide():
rapport = Prelevement(
lieu=LieuFactory(),
structure_preleveuse=StructurePreleveuseFactory(),
structure_preleveuse=StructurePreleveuseFactory(not_exploitant=True),
is_officiel=True,
resultat=Prelevement.Resultat.DETECTE,
numero_rapport_inspection="24-123456",
Expand Down

0 comments on commit 0ca131d

Please sign in to comment.