mirror of
https://github.com/suitenumerique/docs
synced 2026-04-21 13:37:20 +00:00
🐛(back) override AI feature flag in config test
The env.d/development/common file sets AI_FEATURE_ENABLED=true. When pytest starts it imports these variables, so the /api/v1.0/config endpoint returns AI_FEATURE_ENABLED=True and the test_api_config assertion fails. Explicitly overriding AI_FEATURE_ENABLED=False in test_api_config restores the expected behaviour and makes the whole test-suite green. Signed-off-by: ReinforcedKnowledge <reinforced.knowledge@gmail.com>
This commit is contained in:
parent
31d0733851
commit
4b0fd223c8
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ pytestmark = pytest.mark.django_db
|
|||
|
||||
|
||||
@override_settings(
|
||||
AI_FEATURE_ENABLED=False,
|
||||
COLLABORATION_WS_URL="http://testcollab/",
|
||||
CRISP_WEBSITE_ID="123",
|
||||
FRONTEND_CSS_URL="http://testcss/",
|
||||
|
|
|
|||
Loading…
Reference in a new issue