Skip to content

Commit

Permalink
Fix tests listing text generation models (#2593)
Browse files Browse the repository at this point in the history
* Fix tests listing text generation models

* mark legacy test as flaky

* Revert "Fix tests listing text generation models"

This reverts commit 909361c.

* Revert "Revert "Fix tests listing text generation motdels""

This reverts commit 62eaab7.

* Revert "mark legacy test as flaky"

This reverts commit 24e7d2c.
  • Loading branch information
Wauplin authored Oct 8, 2024
1 parent 1b8e9cf commit 39c7a8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_inference_async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ async def test_list_deployed_models_single_frameworks() -> None:
assert isinstance(model, str)

assert "text-generation" in models_by_task
assert "bigscience/bloom" in models_by_task["text-generation"]
assert "HuggingFaceH4/zephyr-7b-beta" in models_by_task["text-generation"]


@pytest.mark.asyncio
Expand Down
2 changes: 1 addition & 1 deletion tests/test_inference_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ def test_list_deployed_models_single_frameworks(self) -> None:
self.assertIsInstance(model, str)

self.assertIn("text-generation", models_by_task)
self.assertIn("bigscience/bloom", models_by_task["text-generation"])
self.assertIn("HuggingFaceH4/zephyr-7b-beta", models_by_task["text-generation"])


@pytest.mark.vcr
Expand Down

0 comments on commit 39c7a8b

Please sign in to comment.