Skip to content

Commit

Permalink
Fix a syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault committed Aug 30, 2024
1 parent f01da50 commit 87dabf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions envergo/moulinette/tests/test_natura2000.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,21 @@ def test_autorisation_urba_value(moulinette_data):
It will always be the case unless the user explicitly states otherwise.
"""
moulinette_data["autorisation_urba"] = "pa"
moulinette = Moulinette(moulinette_data, moulinette_data)
moulinette = MoulinetteAmenagement(moulinette_data, moulinette_data)
assert moulinette.natura2000.autorisation_urba.result == "soumis"
assert moulinette.natura2000.autorisation_urba_needed() is True

moulinette_data["autorisation_urba"] = "other"
moulinette = Moulinette(moulinette_data, moulinette_data)
moulinette = MoulinetteAmenagement(moulinette_data, moulinette_data)
assert moulinette.natura2000.autorisation_urba.result == "a_verifier"
assert moulinette.natura2000.autorisation_urba_needed() is True

moulinette_data["autorisation_urba"] = "none"
moulinette = Moulinette(moulinette_data, moulinette_data)
moulinette = MoulinetteAmenagement(moulinette_data, moulinette_data)
assert moulinette.natura2000.autorisation_urba.result == "non_soumis"
assert moulinette.natura2000.autorisation_urba_needed() is False

del moulinette_data["autorisation_urba"]
moulinette = Moulinette(moulinette_data, moulinette_data)
moulinette = MoulinetteAmenagement(moulinette_data, moulinette_data)
assert moulinette.natura2000.autorisation_urba.result == "non_disponible"
assert moulinette.natura2000.autorisation_urba_needed() is True

0 comments on commit 87dabf0

Please sign in to comment.