Skip to content

Commit 4b0fd22

Browse files
committed
🐛(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 <[email protected]>
1 parent 31d0733 commit 4b0fd22

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/backend/core/tests/test_api_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
@override_settings(
21+
AI_FEATURE_ENABLED=False,
2122
COLLABORATION_WS_URL="http://testcollab/",
2223
CRISP_WEBSITE_ID="123",
2324
FRONTEND_CSS_URL="http://testcss/",

0 commit comments

Comments
 (0)