diff --git a/backend/geonature/tests/test_synthese.py b/backend/geonature/tests/test_synthese.py index 33a443b292..057d6bf19f 100644 --- a/backend/geonature/tests/test_synthese.py +++ b/backend/geonature/tests/test_synthese.py @@ -1837,15 +1837,16 @@ def test_export_observations_sensitive_excluded( # the user has no right to see it assert len(response.json["features"]) == 0 + @pytest.mark.usefixtures("client_class", "temporary_transaction") class TestMediaTaxon: def test_taxon_medias(self, synthese_read_permissions, users): set_logged_user(self.client, users["self_user"]) synthese_read_permissions(users["self_user"], None, sensitivity_filter=True) - + cd_ref = db.session.scalar(select(Taxref.cd_ref)) response = self.client.get(url_for("gn_synthese.taxon_medias", cd_ref=cd_ref)) assert response.status_code == 200 - assert isinstance(response.json["items"], list) \ No newline at end of file + assert isinstance(response.json["items"], list)