aboutsummaryrefslogtreecommitdiff
path: root/test.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2020-10-17 14:58:36 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2020-10-17 14:58:36 +0200
commit946977abc2f0e3053f43d120981cbcf1c73fc9fd (patch)
tree4c6d18aabcc91f928271314324c1ad44e7b51bb9 /test.py
parentee17da20fb504838904f0f06857c76f4c17520e2 (diff)
downloadgeldschieberbot-946977abc2f0e3053f43d120981cbcf1c73fc9fd.tar.gz
geldschieberbot-946977abc2f0e3053f43d120981cbcf1c73fc9fd.zip
allow sum cmd for cars
Diffstat (limited to 'test.py')
-rwxr-xr-xtest.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.py b/test.py
index 17194fb..75ed5af 100755
--- a/test.py
+++ b/test.py
@@ -406,6 +406,19 @@ class TestCarsTransactions(unittest.TestCase):
o = "New Balance: alice <- 20.00 foo\n"
self.assertEqual(res.stdout, o)
+class TestCarsSum(unittest.TestCase):
+ def setUp(self):
+ reset_state("test/state.json_2cars")
+
+ def test_sum_car(self):
+ res = run_bot(self, num[alice], "!sum foo")
+ o =\
+"""Summary:
+foo:
+\tAll fine :)
+"""
+ self.assertEqual(res.stdout, o)
+
class TestCarPayCmd(unittest.TestCase):
def setUp(self):
reset_state("test/state.json_2cars")