Skip to content

Commit f5b034b

Browse files
committed
Enable proxy search in tests
1 parent 2807467 commit f5b034b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/conftest.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,15 @@ async def enable_edit_by_function(base_url, ssl_verify):
304304
yield
305305

306306

307+
@pytest.fixture(scope="session", autouse=True)
308+
async def enable_proxy_search(base_url, ssl_verify):
309+
async with HttpxAsyncClient(
310+
base_url=base_url, headers={"Authorization": f"Bearer {MASTER_KEY}"}, verify=ssl_verify
311+
) as client:
312+
await client.patch("/experimental-features", json={"proxySearch": True})
313+
yield
314+
315+
307316
@pytest.fixture
308317
async def create_tasks(async_empty_index, small_movies):
309318
"""Ensures there are some tasks present for testing."""

0 commit comments

Comments
 (0)