Skip to content

Commit

Permalink
🤡✅ added new integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
agn-7 committed Nov 25, 2023
1 parent a504304 commit ece7dca
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,17 @@ def test_get_all_interactions(db):
assert response.status_code == 200
assert len(response.json()) == 2


def test_create_interaction():
response = client.post(
"/api/interactions",
json={
"prompt": "something",
},
)
assert response.status_code == 200
assert response.json()["settings"] == {
"prompt": "something",
"model_name": "GPT3",
"role": "System",
}

0 comments on commit ece7dca

Please sign in to comment.