Skip to content

Commit

Permalink
linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansurf committed Nov 9, 2024
1 parent 83583f8 commit 527dda2
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions tests/test_gpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,28 @@ def test_simple_gpt():
"""

surf_summary = ""
gpt_prompt = (
"""Please output the days of the week in English. What day
gpt_prompt = """Please output the days of the week in English. What day
is your favorite?"""
)

gpt_response = gpt.simple_gpt(surf_summary, gpt_prompt).lower()
expected_response = set([
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
"saturday",
"friday" "saturday",
"sunday",
"一",
"二",
"三",
"四",
"五"
"五",
])

# Can case the "gpt_response" string into a list, and
# check for set intersection with the expected response set
# Can case the "gpt_response" string into a list, and
# check for set intersection with the expected response set
gpt_response_set = set(gpt_response.split())


assert (
gpt_response_set.intersection(expected_response)
assert gpt_response_set.intersection(
expected_response
), f"Expected '{expected_response}', but got: {gpt_response}"

0 comments on commit 527dda2

Please sign in to comment.