Skip to content

Commit

Permalink
[bug] Factoids: fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Jun 17, 2023
1 parent 1129a10 commit 3f7f102
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/Factoids.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from modules.module import Module, Response
from utilities.serviceutils import ServiceMessage
from utilities.discordutils import DiscordUser
from utilities.utilities import get_user_handle, randbool, is_bot_dev
from utilities.utilities import get_user_handle, randbool, is_bot_dev, Utilities


class Factoids(Module):
Expand Down Expand Up @@ -217,17 +217,18 @@ def __str__(self):
@property
def test_cases(self):
return [

self.create_integration_test(
test_message="remember chriscanal is the person who wrote this test",
expected_response='Ok stampy, remembering that "chriscanal" is "the person who wrote this test"',
expected_response=f'Ok {Utilities.get_instance().discord_user.name}, remembering that "chriscanal" is "the person who wrote this test"',
),
self.create_integration_test(
test_message="list chriscanal",
expected_regex="values for factoid+",
),
self.create_integration_test(
test_message="forget that",
expected_response='Ok stampy, forgetting that "chriscanal" is "the person who wrote this test"',
expected_response=f'Ok {Utilities.get_instance().discord_user.name}, forgetting that "chriscanal" is "the person who wrote this test"',
),
]

Expand Down

0 comments on commit 3f7f102

Please sign in to comment.