From 175be53209b13eaec92ef8b3c0bad8a17dfc7a97 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 10 Aug 2023 23:16:20 +0200 Subject: ignore old obscure changes in the state file --- test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test.py') 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() -- cgit v1.2.3