feat(sqlalchemy): remove session reference from router

This commit is contained in:
Jonathan Rohde committed 2024-06-27 07:48:08 +02:00
1 parent df09d0830a
commit bee835cb65
34 files changed
+1227 -1207

No files matched your search

@@ -68,6 +68,16 @@ class TestPrompts(AbstractPostgresTest):
assert data["content"] == "description Updated"
assert data["user_id"] == "3"
# Get prompt by command
with mock_webui_user(id="2"):
response = self.fast_api_client.get(self.create_url("/command/my-command2"))
assert response.status_code == 200
data = response.json()
assert data["command"] == "/my-command2"
assert data["title"] == "Hello World Updated"
assert data["content"] == "description Updated"
assert data["user_id"] == "3"
# Delete prompt
with mock_webui_user(id="2"):
response = self.fast_api_client.delete(