Skip to content

Commit

Permalink
fix: failing baseten test
Browse files Browse the repository at this point in the history
  • Loading branch information
minaamshahid committed Oct 28, 2024
1 parent 27413b4 commit 1fd7e6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/unit/models/test_baseten.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,14 @@ async def test_baseten_init_valid(

# Test asynchronous initialization without webhook secret
monkeypatch.delenv("BASETEN_WEBHOOK_SECRET", raising=False)
with (
patch("flow_judge.models.baseten.get_deployed_model_id", return_value="mock_model_id"),
patch("flow_judge.models.baseten.ensure_model_deployment", return_value=True),
patch(
"flow_judge.models.baseten.ensure_baseten_webhook_secret",
return_value=False,
),
):
with pytest.raises(
BasetenError,
match=(
Expand Down

0 comments on commit 1fd7e6a

Please sign in to comment.