mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Fix failing client tests
This commit is contained in:
parent
8f200cf53f
commit
5a6ab9cc85
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue