Skip to content

Commit

Permalink
feat(tests) add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Jan 8, 2025
1 parent 8aad538 commit 04f5b02
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions backend/geonature/tests/test_gn_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,19 @@ def test_get_export_pdf_acquisition_frameworks(self, users, acquisition_framewor

assert response.status_code == 200

def test_get_export_pdf_acquisition_frameworks_with_data(
self, users, acquisition_frameworks, datasets
):
af_id = acquisition_frameworks["af_1"].id_acquisition_framework

set_logged_user(self.client, users["user"])

response = self.client.post(
url_for("gn_meta.get_export_pdf_acquisition_frameworks", id_acquisition_framework=af_id)
)

assert response.status_code == 200

def test_get_export_pdf_acquisition_frameworks_unauthorized(self, acquisition_frameworks):
af_id = acquisition_frameworks["own_af"].id_acquisition_framework

Expand Down

0 comments on commit 04f5b02

Please sign in to comment.