From 2fdb547c23af8a2a74eafc475e59b894d1e8894c Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 24 Mar 2021 16:04:45 +0100 Subject: s/Transfere/Transfer --- geldschieberbot.py | 6 +++--- test.py | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/geldschieberbot.py b/geldschieberbot.py index 91c88bd..73449e8 100644 --- a/geldschieberbot.py +++ b/geldschieberbot.py @@ -320,7 +320,7 @@ def transaction(sender, args, msg): return None, 'recipient not known' if sender == recipient: - return None, 'you can not transfere money to or from yourself' + return None, 'you can not transfer money to or from yourself' try: amount = to_cent(amount) @@ -492,7 +492,7 @@ def cars(sender, args, msg): assert(err is None) output += f"{sender_name} payed {amount_euro}\n" - # transfere money + # transfer money output += f"Transferring {proportion * -100:.2f}% of everybody's charges\n" for person, _amount in available_charges: if person == sender_name or _amount >= 0: @@ -503,7 +503,7 @@ def cars(sender, args, msg): ret, err = transfer(sender, ["transfer", to_move_euro, car, person], "") assert(err is None) - output += "Transfere {} from {} to {}\n".format(to_move_euro, person, sender_name) + output += "Transfer {} from {} to {}\n".format(to_move_euro, person, sender_name) output += "New Balances:\n" output += create_summary(sender_name) + "\n" diff --git a/test.py b/test.py index 75ed5af..d7db0c8 100755 --- a/test.py +++ b/test.py @@ -206,10 +206,10 @@ class TestTransactionCmd(unittest.TestCase): def test_transactions_with_myself(self): res = run_bot(self, num[alice], f"!schieb {alice} 1,1") - self.assertEqual(res.stdout, 'ERROR: you can not transfere money to or from yourself') + self.assertEqual(res.stdout, 'ERROR: you can not transfer money to or from yourself') res = run_bot(self, num[alice], f"!zieh {alice} 2.1") - self.assertEqual(res.stdout, 'ERROR: you can not transfere money to or from yourself') + self.assertEqual(res.stdout, 'ERROR: you can not transfer money to or from yourself') class TestSumCmd(unittest.TestCase): def test_summary_single_user(self): @@ -432,8 +432,8 @@ class TestCarPayCmd(unittest.TestCase): o = \ """alice payed 30.00 Transferring 100.00% of everybody's charges -Transfere 20.00 from bob to alice -Transfere 10.00 from charlie to alice +Transfer 20.00 from bob to alice +Transfer 10.00 from charlie to alice New Balances: alice: \t<- bob 20.00 @@ -452,8 +452,8 @@ foo: o = \ """alice payed 40.00 Transferring 100.00% of everybody's charges -Transfere 20.00 from bob to alice -Transfere 10.00 from charlie to alice +Transfer 20.00 from bob to alice +Transfer 10.00 from charlie to alice New Balances: alice: \t<- bob 20.00 @@ -477,8 +477,8 @@ foo: o = \ """alice payed 15.00 Transferring 50.00% of everybody's charges -Transfere 10.00 from bob to alice -Transfere 5.00 from charlie to alice +Transfer 10.00 from bob to alice +Transfer 5.00 from charlie to alice New Balances: alice: \t<- bob 10.00 -- cgit v1.2.3