aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index f392a4d..8535485 100755
--- a/test.py
+++ b/test.py
@@ -1417,8 +1417,8 @@ class TestStateLoadStore(unittest.TestCase):
def test_init(self):
sp = "test/state_3users.json"
- bot = Geldschieberbot(sp, DEFAULT_GROUP_ID)
- self.assertTrue(compare_state(sp, state=bot.state))
+ with Geldschieberbot(sp, DEFAULT_GROUP_ID) as bot:
+ self.assertTrue(compare_state(sp, state=bot.state))
def test_explicit_load(self):
sp = "test/state_3users.json"