Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
orangetin committed Aug 26, 2024
1 parent b248178 commit ef984a2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion tests/integration/constants.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
completion_test_model_list = [
"meta-llama/Llama-2-7b-hf",
"togethercomputer/StripedHyena-Hessian-7B",
]
chat_test_model_list = []
embedding_test_model_list = []
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/resources/test_completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def test_create(
assert isinstance(response.id, str)
assert isinstance(response.created, int)
assert isinstance(response.object, ObjectType)
assert response.model == model
assert isinstance(response.choices, list)
assert isinstance(response.choices[0], CompletionChoicesData)
assert isinstance(response.choices[0].text, str)
Expand Down Expand Up @@ -170,8 +169,6 @@ def test_model(

assert isinstance(response, CompletionResponse)

assert response.model == model

@pytest.mark.parametrize(
"model,prompt",
product(completion_test_model_list, completion_prompt_list),
Expand Down
1 change: 0 additions & 1 deletion tests/integration/resources/test_completion_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ def test_create(
assert isinstance(chunk.id, str)
assert isinstance(chunk.created, int)
assert isinstance(chunk.object, ObjectType)
assert chunk.model == model
assert isinstance(chunk.choices[0], CompletionChoicesChunk)
assert isinstance(chunk.choices[0].index, int)
assert isinstance(chunk.choices[0].delta, DeltaContent)
Expand Down

0 comments on commit ef984a2

Please sign in to comment.