Skip to content

Commit

Permalink
[ci][frontend] deduplicate tests (#7101)
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao authored Aug 5, 2024
1 parent 4db5176 commit dfb1a15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 723 deletions.
14 changes: 6 additions & 8 deletions tests/entrypoints/openai/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,13 @@ def default_server_args(zephyr_lora_files, zephyr_lora_added_tokens_files,
]


@pytest.fixture(scope="module")
def server(default_server_args):
@pytest.fixture(scope="module",
params=["", "--disable-frontend-multiprocessing"])
def client(default_server_args, request):
if request.param:
default_server_args.append(request.param)
with RemoteOpenAIServer(MODEL_NAME, default_server_args) as remote_server:
yield remote_server


@pytest.fixture(scope="module")
def client(server):
return server.get_async_client()
yield remote_server.get_async_client()


@pytest.mark.asyncio
Expand Down
Loading

0 comments on commit dfb1a15

Please sign in to comment.