🐛(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:
@@ -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/",
|
||||
|
||||
Reference in New Issue
Block a user