File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535from tests .utils import setup_fastapi_app , setup_server
3636
3737
38- @pytest .mark .fastapi
3938class 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
568566class TestChatCompletionsTokenizers :
569567 # Re-use a single Triton server for different frontend configurations
570568 @pytest .fixture (scope = "class" )
Original file line number Diff line number Diff line change 2929import pytest
3030
3131
32- @pytest .mark .fastapi
3332class TestCompletions :
3433 @pytest .fixture (scope = "class" )
3534 def client (self , fastapi_client_class_scope ):
Original file line number Diff line number Diff line change 2525# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2626
2727import base64
28+ import os
2829from pathlib import Path
2930
3031import numpy as np
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+ )
422426class 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
You can’t perform that action at this time.
0 commit comments