From bec221d515dc946d0bb41f471041a594f049a971 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Mon, 29 Mar 2021 10:58:35 +0200 Subject: remove duplicate test methods --- test.py | 44 -------------------------------------------- 1 file changed, 44 deletions(-) diff --git a/test.py b/test.py index c7e32c5..86ca3db 100755 --- a/test.py +++ b/test.py @@ -701,37 +701,6 @@ Car foo: \tBalance: 1.20""" self.assertEqual(res.stdout, o) - def test_tanken_3users_with_car(self): - i = "!cars add foo 0.04" - res = run_bot(self, num[alice], i) - o = 'added "foo" as an available car' - self.assertEqual(res.stdout, o) - - i = \ -"""!tanken 10 alice foo -20 alice bob -10 charlie""" - res = run_bot(self, num[alice], i) - o = \ -"""alice: 20km = fuel: 3.33, service charge: 0.40 -bob: 20km = fuel: 3.33, service charge: 0.40 -charlie: 10km = fuel: 3.33, service charge: 0.40 -New Balance: -alice: -\t<- bob 3.33 -\t<- charlie 3.33 -\tBalance: 6.66 -\tCars: -\t-> foo 0.40 -\tLiability: -0.40 -Car foo: -\t<- alice 0.40 -\t<- bob 0.40 -\t<- charlie 0.40 -\tBalance: 1.20""" - self.assertEqual(res.stdout, o) - - class TestTransferCmd(unittest.TestCase): def setUp(self): reset_state("test/state.json_3users") @@ -940,19 +909,6 @@ alice <- 1.00 charlie self.assertEqual(res.stdout, msg) compare_state("test/state.json_3users") - def test_fuck_transaction(self): - run_bot(self, num[alice], "!schieb " + bob + " 10") - res = run_bot(self, num[alice], "!fuck") - msg = \ -"""alice: sorry I fucked up! -Rewinding: -!schieb bob 10 -alice <- 10.00 bob -""" - self.assertEqual(res.stdout, msg) - compare_state("test/state.json_3users") - - class TestScheduleCmd(unittest.TestCase): def setUp(self): reset_state("test/state.json_3users") -- cgit v1.2.3