Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
update RefGeo to 1.5.3

fix revision

fix rebase develop

fix package lock
  • Loading branch information
jacquesfize committed Jul 25, 2024
1 parent 4087502 commit fd291fc
Show file tree
Hide file tree
Showing 9 changed files with 5,584 additions and 1,409 deletions.
2 changes: 1 addition & 1 deletion backend/geonature/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def create_app(with_external_mods=True):
if "CELERY" in app.config:
from geonature.utils.celery import celery_app

celery_app.init_app(app)
# celery_app.init_app(app)
celery_app.conf.update(app.config["CELERY"])

# Emails configuration
Expand Down
2 changes: 2 additions & 0 deletions backend/geonature/tests/imports/test_imports_occhab.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def imported_import(client, prepared_import):
with logged_user(client, imprt.authors[0]):
r = client.post(url_for("import.import_valid_data", import_id=imprt.id_import))
assert r.status_code == 200, r.data

db.session.refresh(imprt)
return imprt

Expand All @@ -183,6 +184,7 @@ def imported_import(client, prepared_import):
class TestImportsOcchab:
@pytest.mark.parametrize("import_file_name", ["valid_file.csv"])
def test_import_valid_file(self, imported_import):

assert_import_errors(
imported_import,
{
Expand Down
5 changes: 2 additions & 3 deletions backend/geonature/utils/celery.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from celery import Celery
import flask
from geonature.utils.env import db


class FlaskCelery(Celery):
Expand Down Expand Up @@ -33,7 +32,7 @@ def __call__(self, *args, **kwargs):

def init_app(self, app):
self.app = app
self.config_from_object(app.config)
self.config_from_object(app.config["CELERY"])


celery_app = FlaskCelery("geonature")
celery_app = Celery("geonature") # FIX ME
12 changes: 5 additions & 7 deletions backend/requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ bokeh==3.4.1
# via -r requirements-common.in
boto3==1.29.1
# via taxhub
botocore==1.34.112
botocore==1.32.7
# via
# boto3
# s3transfer
Expand Down Expand Up @@ -262,8 +262,6 @@ marshmallow-sqlalchemy==1.0.0
# taxhub
# usershub
# utils-flask-sqlalchemy-geo
munch==4.0.0
# via fiona
numpy==1.26.2
# via
# bokeh
Expand All @@ -274,11 +272,9 @@ packaging==23.2
# via
# -r requirements-common.in
# bokeh
# flask-marshmallow
# geoalchemy2
# gunicorn
# marshmallow
# marshmallow-sqlalchemy
pandas==2.1.4
# via
# -r requirements-common.in
Expand Down Expand Up @@ -332,7 +328,7 @@ requests==2.32.2
# via
# pypn-habref-api
# pypnusershub
s3transfer==0.10.1
s3transfer==0.7.0
# via boto3
shapely==2.0.4
# via
Expand Down Expand Up @@ -416,7 +412,9 @@ wtforms-components==0.10.5
wtforms-sqlalchemy==0.4.1
# via -r requirements-common.in
xmltodict==0.13.0
# via -r requirements-common.in
# via
# -r requirements-common.in
# pypnusershub
xyzservices==2024.4.0
# via bokeh
zipp==3.17.0
Expand Down
2 changes: 0 additions & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,6 @@ marshmallow-sqlalchemy==1.0.0
# pypnusershub
# taxhub
# utils-flask-sqlalchemy-geo
munch==4.0.0
# via fiona
numpy==1.26.3
# via
# bokeh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# revision identifiers, used by Alembic.
revision = "295861464d84"
down_revision = "85efc9bb5a47"
down_revision = "fcf1e091b636"
branch_labels = None
depends_on = None

Expand Down
Loading

0 comments on commit fd291fc

Please sign in to comment.