Skip to content

Commit

Permalink
fix(test): WIP - error based on id_nomenclature
Browse files Browse the repository at this point in the history
Error message :
  raise sa_exc.InvalidRequestError(
sqlalchemy.exc.InvalidRequestError: 'TDatasets.nomenclature_data_origin' is not available due to lazy='raise'

See: FIXME of this commit
Reviewed-by: andriacap
  • Loading branch information
andriacap committed Mar 11, 2024
1 parent a254824 commit ad3a932
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/geonature/core/gn_synthese/imports/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ def update_batch_progress(batch, step):
if (
current_app.config["IMPORT"]["CHECK_PRIVATE_JDD_BLURING"]
# and not current_app.config["IMPORT"]["FILL_MISSING_NOMENCLATURE_WITH_DEFAULT_VALUE"] # XXX
# FIXME: raise sa_exc.InvalidRequestError(
# sqlalchemy.exc.InvalidRequestError: 'TDatasets.nomenclature_data_origin' is not available due to lazy='raise'
and imprt.dataset.nomenclature_data_origin.mnemonique == "Privée"
):
check_nomenclature_blurring(imprt, entity, fields["id_nomenclature_blurring"])
Expand Down

0 comments on commit ad3a932

Please sign in to comment.