Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/synthese test #2950

Merged
merged 4 commits into from
Mar 14, 2024
Merged

Fix/synthese test #2950

merged 4 commits into from
Mar 14, 2024

Conversation

TheoLechemia
Copy link
Member

Utilisation de marshmallow pour la validation du retour de la route get_observations_for_web
Contrôle de la présence des champs obligatoires

Copy link

codecov bot commented Mar 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.45%. Comparing base (1e47158) to head (f235b99).
Report is 7 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2950      +/-   ##
===========================================
+ Coverage    78.44%   78.45%   +0.01%     
===========================================
  Files           89       89              
  Lines         7199     7204       +5     
===========================================
+ Hits          5647     5652       +5     
  Misses        1552     1552              
Flag Coverage Δ
pytest 78.45% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheoLechemia TheoLechemia force-pushed the fix/synthese-test branch 2 times, most recently from bdd939f to 7bda3ce Compare March 11, 2024 11:08
@TheoLechemia TheoLechemia force-pushed the fix/synthese-test branch 2 times, most recently from dc18deb to 693f911 Compare March 14, 2024 08:10
r = self.client.get(url)
assert r.status_code == Unauthorized.code

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

r = self.client.get(url)
assert r.status_code == 200
validate_json(instance=r.json, schema=schema)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doublons ?

backend/geonature/tests/test_synthese.py Show resolved Hide resolved
backend/geonature/tests/test_synthese.py Show resolved Hide resolved
)


class NestedObs(Schema):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docstring

backend/geonature/tests/test_synthese.py Show resolved Hide resolved
@jacquesfize jacquesfize merged commit 1be5cab into develop Mar 14, 2024
9 checks passed
@jacquesfize jacquesfize deleted the fix/synthese-test branch March 14, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants