Skip to content

Commit

Permalink
tests: fixed blinking test
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Aug 29, 2024
1 parent 5f00b9c commit c6953b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,8 @@ def test_api_conversation_generate(conv: str, client: FlaskClient):
)
assert response.status_code == 200
msgs = response.get_json()
assert len(msgs) == 1
assert len(msgs) >= 1
assert len(msgs) <= 2
assert msgs[0]["role"] == "assistant"
if len(msgs) == 2:
assert msgs[1]["role"] == "system"

0 comments on commit c6953b3

Please sign in to comment.