Skip to content

Commit 976ca52

Browse files
committed
Update tests
1 parent 61076d9 commit 976ca52

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

python/openai/tests/test_chat_completions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
from tests.utils import setup_fastapi_app, setup_server
3636

3737

38-
@pytest.mark.fastapi
3938
class TestChatCompletions:
4039
@pytest.fixture(scope="class")
4140
def client(self, fastapi_client_class_scope):
@@ -564,7 +563,6 @@ def test_usage_response(
564563

565564
# For tests that won't use the same pytest fixture for server startup across
566565
# the whole class test suite.
567-
@pytest.mark.fastapi
568566
class TestChatCompletionsTokenizers:
569567
# Re-use a single Triton server for different frontend configurations
570568
@pytest.fixture(scope="class")

python/openai/tests/test_completions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import pytest
3030

3131

32-
@pytest.mark.fastapi
3332
class TestCompletions:
3433
@pytest.fixture(scope="class")
3534
def client(self, fastapi_client_class_scope):

python/openai/tests/test_embeddings.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626

2727
import base64
28+
import os
2829
from pathlib import Path
2930

3031
import numpy as np
@@ -418,15 +419,11 @@
418419
]
419420

420421

421-
@pytest.mark.fastapi
422+
@pytest.mark.skipif(
423+
os.environ.get("IMAGE_KIND") == "TRTLLM",
424+
reason="TRT-LLM backend does not support embedding requests",
425+
)
422426
class TestEmbeddings:
423-
@pytest.fixture(scope="class", autouse=True)
424-
def check_backend(backend: str):
425-
if backend != "vllm":
426-
pytest.skip(
427-
"TRT-LLM backend and Python backend do not support embedding requests"
428-
)
429-
430427
@pytest.fixture(scope="class")
431428
def client(self, fastapi_client_class_scope):
432429
yield fastapi_client_class_scope

0 commit comments

Comments
 (0)