aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-08-10 23:16:20 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-08-10 23:16:20 +0200
commit175be53209b13eaec92ef8b3c0bad8a17dfc7a97 (patch)
treec89cb938910cb45bcba49c852b1af0bb3c0d4ffa /test.py
parent0a4775501821284838de7220fa82678fd3f2f698 (diff)
downloadgeldschieberbot-175be53209b13eaec92ef8b3c0bad8a17dfc7a97.tar.gz
geldschieberbot-175be53209b13eaec92ef8b3c0bad8a17dfc7a97.zip
ignore old obscure changes in the state file
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()