Skip to content

Commit

Permalink
fix(backend): missed test in refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ezawadski committed Jan 16, 2025
1 parent e8779d2 commit fa1eda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/backend/crud/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def update_agent(
if agent.is_private and agent.user_id != user_id:
return None

new_agent_cleaned = new_agent.dict(exclude_unset=True, exclude_none=True)
new_agent_cleaned = new_agent.model_dump(exclude_unset=True, exclude_none=True)

for attr, value in new_agent_cleaned.items():
setattr(agent, attr, value)
Expand Down
2 changes: 1 addition & 1 deletion src/backend/tests/integration/routers/test_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_list_deployments_no_available_models_404(
session_client: TestClient, session: Session
) -> None:
session.query(Deployment).delete()
with patch("backend.services.deployment.AVAILABLE_MODEL_DEPLOYMENTS", []):
with patch("backend.services.deployment.AVAILABLE_MODEL_DEPLOYMENTS", {}):
response = session_client.get("/v1/deployments")
assert response.status_code == 404
assert response.json() == {
Expand Down

0 comments on commit fa1eda8

Please sign in to comment.