feat(sqlalchemy): reverted not needed api change

This commit is contained in:
Jonathan Rohde
2024-06-25 08:29:18 +02:00
parent 642c352c69
commit d4b6b7c4e8
4 changed files with 15 additions and 6 deletions

View File

@@ -42,9 +42,9 @@ class TestModels(AbstractPostgresTest):
assert len(response.json()) == 1
with mock_webui_user(id="2"):
response = self.fast_api_client.get(self.create_url("/my-model"))
response = self.fast_api_client.get(self.create_url(query_params={"id": "my-model"}))
assert response.status_code == 200
data = response.json()
data = response.json()[0]
assert data["id"] == "my-model"
assert data["name"] == "Hello World"