mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 13:18:18 +00:00
Fix failing client tests
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user