From 3f7f102412cf671aa04df36b44ba36332dc235b3 Mon Sep 17 00:00:00 2001 From: Producer Matt <58014742+ProducerMatt@users.noreply.github.com> Date: Sat, 17 Jun 2023 16:56:13 -0500 Subject: [PATCH] [bug] Factoids: fix integration tests --- modules/Factoids.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/Factoids.py b/modules/Factoids.py index 2aba02ac..b002ef5e 100644 --- a/modules/Factoids.py +++ b/modules/Factoids.py @@ -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): @@ -217,9 +217,10 @@ 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", @@ -227,7 +228,7 @@ def test_cases(self): ), 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"', ), ]