Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Dec 7, 2023
1 parent e8b883a commit e6ab47e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
- name: Install import module database
run: |
geonature upgrade-modules-db EXPORTS
geonature db upgrade exports@head
env:
GEONATURE_CONFIG_FILE: dependencies/GeoNature/config/test_config.toml
- name: Test with pytest
Expand Down
2 changes: 1 addition & 1 deletion backend/gn_module_export/blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def get_one_export_api(id_export):

user = g.current_user

export = Export.query.get_or_404(id_export)
export = DB.get_or_404(Export, id_export)

scope = None
if user.is_authenticated:
Expand Down
2 changes: 0 additions & 2 deletions backend/gn_module_export/tests/test_blueprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from werkzeug.datastructures import Headers

from geonature.tests.fixtures import *

# from geonature.tests.utils import set_logged_user_cookie
from pypnusershub.tests.utils import set_logged_user_cookie

from .fixtures import *
Expand Down

0 comments on commit e6ab47e

Please sign in to comment.