From 9f3b75d2eb934c3eab8a00a92078d883ca53cd5e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 19 Apr 2022 11:18:37 +0200 Subject: test.py: make format --- test.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test.py b/test.py index b0a892f..b7a18c8 100755 --- a/test.py +++ b/test.py @@ -105,6 +105,7 @@ def compare_state(comp_state): class TestRegCmd(unittest.TestCase): + def setUp(self): reset_state() @@ -143,6 +144,7 @@ class TestRegCmd(unittest.TestCase): class TestTransactionCmd(unittest.TestCase): + @classmethod def tearDownClass(cls): reset_state() @@ -252,6 +254,7 @@ class TestTransactionCmd(unittest.TestCase): class TestSumCmd(unittest.TestCase): + def test_summary_single_user(self): reset_state("test/state.json_transactions1") res = run_bot(self, num[alice], "!sum " + alice) @@ -315,6 +318,7 @@ charlie: class TestMisc(unittest.TestCase): + def test_unknown_command(self): res = run_bot(self, num[alice], "!foo") self.assertEqual( @@ -327,6 +331,7 @@ class TestMisc(unittest.TestCase): class TestListCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -344,6 +349,7 @@ class TestListCmd(unittest.TestCase): class TestSplitCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -427,6 +433,7 @@ alice: class TestCarsAdd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -467,6 +474,7 @@ class TestCarsAdd(unittest.TestCase): class TestCarsTransactions(unittest.TestCase): + def setUp(self): reset_state("test/state.json_2cars") @@ -478,6 +486,7 @@ class TestCarsTransactions(unittest.TestCase): class TestCarsSum(unittest.TestCase): + def setUp(self): reset_state("test/state.json_2cars") @@ -492,6 +501,7 @@ foo: class TestCarsRemove(unittest.TestCase): + def setUp(self): reset_state("test/state.json_2cars") @@ -508,6 +518,7 @@ class TestCarsRemove(unittest.TestCase): class TestCarPayCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_2cars") @@ -579,6 +590,7 @@ foo: class TestCarsListCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_2cars") @@ -641,6 +653,7 @@ foo: class TestTankenCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -739,6 +752,7 @@ Car foo: class TestTransferCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -779,6 +793,7 @@ New Balance: bob -> 5.00 charlie #TODO: tanken, transfer, cars pay class TestListChangesCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -858,6 +873,7 @@ Change 2: class TestFuckCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -948,6 +964,7 @@ alice <- 1.00 charlie class TestScheduleCmd(unittest.TestCase): + def setUp(self): reset_state("test/state.json_3users") @@ -1129,6 +1146,7 @@ fiat: class TestThanks(unittest.TestCase): + def test_thanks(self): res = run_bot(self, num[alice], "!thanks") self.assertEqual( -- cgit v1.2.3