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>