aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/test.py b/test.py
index 74f9f4b..71d6d34 100755
--- a/test.py
+++ b/test.py
@@ -1366,5 +1366,17 @@ class TestThanks(unittest.TestCase):
)
+class TestConvertState(unittest.TestCase):
+
+ def setUp(self):
+ reset_state("test/old_changes.json")
+
+ def test_thanks(self):
+ res = run_bot(self, num[alice], "!thanks")
+ self.assertEqual(
+ res.stdout,
+ f"You are welcome. It is a pleasure to work with you, {num['alice']}.")
+
+
if __name__ == '__main__':
unittest.main()