Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Melyns authored Sep 12, 2024
1 parent 492e901 commit 249f364
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ def test_index():
assert '<button id="new-chat-button" class="new-chat-button">New Chat</button>' in response.text

def test_new_chat():
# Ensure the chat is not paused before starting a new chat
client.post("/pause")

response = client.post("/new-chat")
assert response.status_code == 200
assert response.json() == {"status": "new chat started"}

def test_pause():
# Check initial pause state
response = client.post("/pause")
assert response.status_code == 200
assert response.json()["paused"] is True

# Toggle pause state back to False
response = client.post("/pause")
assert response.status_code == 200
assert response.json()["paused"] is False

0 comments on commit 249f364

Please sign in to comment.