Skip to content

Commit

Permalink
test(fixtures): refresh to overwrite synthese objs
Browse files Browse the repository at this point in the history
Because triggers are fired when inserted Synthese data, especially the
triggers that updates the observation sensitivity
  • Loading branch information
Maxime Vergez committed Aug 2, 2023
1 parent a44b0fd commit 019aba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/geonature/tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ def synthese_sensitive_data(app, users, datasets, source):
)
db.session.add(s)
data[name] = s

for orm_objects in data.values():
db.session.refresh(orm_objects)
# Assert that obs_sensitive_protected is a sensitive observation
nomenclature_not_sensitive = (
TNomenclatures.query.filter(
Expand Down

0 comments on commit 019aba1

Please sign in to comment.