diff --git a/backend/geonature/tests/fixtures.py b/backend/geonature/tests/fixtures.py index 9c2820a23e..a660154f32 100644 --- a/backend/geonature/tests/fixtures.py +++ b/backend/geonature/tests/fixtures.py @@ -615,14 +615,13 @@ def synthese_sensitive_data(app, users, datasets, source): data[name] = s # Assert that obs_sensitive_protected is a sensitive observation - nomenclature_not_sensitive = ( + id_nomenclature_not_sensitive = ( TNomenclatures.query.filter( TNomenclatures.nomenclature_type.has(BibNomenclaturesTypes.mnemonique == "SENSIBILITE") ) .filter(TNomenclatures.cd_nomenclature == "0") .one() - ) - id_nomenclature_not_sensitive = nomenclature_not_sensitive.id_nomenclature + ).id_nomenclature synthese_to_assert = Synthese.query.filter( Synthese.id_synthese.in_(