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

[IMPORT] check permission when habitat is imported on existing station #3209

Merged
merged 11 commits into from
Oct 15, 2024

Conversation

jacquesfize
Copy link
Contributor

This PR propose a new check to verify if a user got required permissions to import a new habitat in an existing station.

@jacquesfize jacquesfize requested a review from bouttier October 1, 2024 14:25
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.54%. Comparing base (cd74e5f) to head (8c36bca).
Report is 1 commits behind head on feat/import.

Additional details and impacted files
@@               Coverage Diff               @@
##           feat/import    #3209      +/-   ##
===============================================
+ Coverage        83.52%   83.54%   +0.01%     
===============================================
  Files              121      121              
  Lines             9548     9559      +11     
===============================================
+ Hits              7975     7986      +11     
  Misses            1573     1573              
Flag Coverage Δ
pytest 83.54% <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.

@jacquesfize jacquesfize added this to the 2.15 milestone Oct 9, 2024
@jacquesfize jacquesfize self-assigned this Oct 9, 2024
backend/geonature/tests/imports/test_imports_occhab.py Outdated Show resolved Hide resolved
backend/geonature/tests/imports/test_imports_occhab.py Outdated Show resolved Hide resolved
@@ -205,6 +216,18 @@ def station(datasets):
return station


@pytest.fixture(scope="function")
def station_other_dataset(datasets):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def station_other_dataset(datasets):
def station_stranger_dataset(datasets):

@jacquesfize jacquesfize merged commit c7bb770 into feat/import Oct 15, 2024
9 checks passed
@jacquesfize jacquesfize deleted the feat-check-exisiting-station-perm branch October 15, 2024 14:52
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