Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
dfb1a15d
Unverified
Commit
dfb1a15d
authored
Aug 05, 2024
by
youkaichao
Committed by
GitHub
Aug 05, 2024
Browse files
[ci][frontend] deduplicate tests (#7101)
parent
4db5176d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
723 deletions
+6
-723
tests/entrypoints/openai/test_completion.py
tests/entrypoints/openai/test_completion.py
+6
-8
tests/entrypoints/openai/test_disable_mp.py
tests/entrypoints/openai/test_disable_mp.py
+0
-715
No files found.
tests/entrypoints/openai/test_completion.py
View file @
dfb1a15d
...
...
@@ -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
...
...
tests/entrypoints/openai/test_disable_mp.py
deleted
100644 → 0
View file @
4db5176d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment