diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-24 16:04:45 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2021-03-24 16:04:45 +0100 |
| commit | 2fdb547c23af8a2a74eafc475e59b894d1e8894c (patch) | |
| tree | 4df43a5ea09f369bb16c5985177657602a405fa4 | |
| parent | 480a9ba65568de361a5e75bade25f62f7e5c935d (diff) | |
| download | geldschieberbot-2fdb547c23af8a2a74eafc475e59b894d1e8894c.tar.gz geldschieberbot-2fdb547c23af8a2a74eafc475e59b894d1e8894c.zip | |
s/Transfere/Transfer
| -rw-r--r-- | geldschieberbot.py | 6 | ||||
| -rwxr-xr-x | 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" @@ -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 |
