Fix failing client tests

This commit is contained in:
Debanjum Singh Solanky 2023-11-15 00:17:44 -08:00
parent 8f200cf53f
commit 5a6ab9cc85

View file

@ -173,7 +173,6 @@ def test_regenerate_with_github_fails_without_pat(client):
# ----------------------------------------------------------------------------------------------------
@pytest.mark.django_db
@pytest.mark.skip(reason="Flaky test on parallel test runs")
def test_get_configured_types_via_api(client, sample_org_data):
# Act
text_search.setup(OrgToEntries, sample_org_data, regenerate=False)
@ -204,6 +203,9 @@ def test_get_api_config_types(client, sample_org_data, default_user: KhojUser):
def test_get_configured_types_with_no_content_config(fastapi_app: FastAPI):
# Arrange
state.anonymous_mode = True
if state.config and state.config.content_type:
state.config.content_type = None
state.search_models = configure_search_types()
configure_routes(fastapi_app)
client = TestClient(fastapi_app)