Health score updates in backend
This commit is contained in:
@@ -67,6 +67,19 @@ os.environ.setdefault("USE_GOOGLE_CSE", "false")
|
||||
# which sets the value explicitly and clears the parsed cache.
|
||||
os.environ["ACTIVE_BRANDS"] = ""
|
||||
|
||||
# Unconditional, and OFF - the opposite of the production default.
|
||||
#
|
||||
# Finishing an ingestion batch queues nutrition enrichment on a background
|
||||
# thread, and that thread calls out to a database and to Open Food Facts. Any
|
||||
# test that runs `run_batch` would start it, so a `pytest` run reached for the
|
||||
# host in the developer's backend/.env - which on this project is PRODUCTION.
|
||||
# It got no further than a failed password, which is not a margin worth
|
||||
# relying on.
|
||||
#
|
||||
# The behaviour itself is covered by tests/test_auto_enrich_on_upload.py, which
|
||||
# turns it on explicitly, the same arrangement ACTIVE_BRANDS has above.
|
||||
os.environ["AUTO_ENRICH_ON_UPLOAD"] = "false"
|
||||
|
||||
# Auth is set unconditionally (not setdefault): the suite asserts on the real
|
||||
# guards, so it must never inherit a developer's AUTH_ENABLED=false.
|
||||
os.environ["AUTH_ENABLED"] = "true"
|
||||
|
||||
Reference in New Issue
Block a user