aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2021-03-29 10:58:35 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2021-03-29 10:58:35 +0200
commitbec221d515dc946d0bb41f471041a594f049a971 (patch)
tree0b253fa299a8ad936396fbca8c086f39e6e032b6
parent9df61dde66556180b550904a9abdadfc3b580b22 (diff)
downloadgeldschieberbot-bec221d515dc946d0bb41f471041a594f049a971.tar.gz
geldschieberbot-bec221d515dc946d0bb41f471041a594f049a971.zip
remove duplicate test methods
-rwxr-xr-xtest.py44
1 files changed, 0 insertions, 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")