Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pamella committed Jan 29, 2025
1 parent 430a007 commit d917575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/test_helpers/test_use_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def test_create_message():

assert response["input"] == "Hello, will I have to use my umbrella in Lisbon tomorrow?"
assert response["output"] == (
"It looks like Lisbon will have a sunny day with a high of 35 degrees Celsius tomorrow. "
"No umbrella needed!"
"The forecast for Lisbon tomorrow is hot with a temperature of 35 degrees Celsius, "
"and it doesn't suggest rain. Therefore, you probably won't need to use your umbrella."
)


Expand Down
4 changes: 1 addition & 3 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ def test_create_thread_message(authenticated_client):
ai_message = chat_messages[1]

assert human_message.content == "Hello, what is the temperature in SF right now?"
assert (
ai_message.content == "The current temperature in San Francisco, CA is 32 degrees Celsius."
)
assert ai_message.content == "The current temperature in San Francisco, CA is 32°C."


# DELETE
Expand Down

0 comments on commit d917575

Please sign in to comment.