diff options
| author | 0livd <0livd@users.noreply.github.com> | 2017-03-11 14:28:17 +0100 |
|---|---|---|
| committer | 0livd <0livd@users.noreply.github.com> | 2017-03-12 22:23:24 +0100 |
| commit | 108970eb503f503b764408b0f93fde87d67a776d (patch) | |
| tree | 5203be291fcf68b0829a299d224105f8d31815e8 /budget | |
| parent | e35480d6b7adf76f5bc4d46153b621abd722c681 (diff) | |
| download | ihatemoney-mirror-108970eb503f503b764408b0f93fde87d67a776d.zip ihatemoney-mirror-108970eb503f503b764408b0f93fde87d67a776d.tar.gz ihatemoney-mirror-108970eb503f503b764408b0f93fde87d67a776d.tar.bz2 | |
Fix tab indentation
Diffstat (limited to 'budget')
| -rw-r--r-- | budget/models.py | 10 | ||||
| -rw-r--r-- | budget/tests.py | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/budget/models.py b/budget/models.py index 8f570fb..1da4489 100644 --- a/budget/models.py +++ b/budget/models.py @@ -255,11 +255,11 @@ class Bill(db.Model): def pay_each(self): """Compute what each share has to pay""" - if self.owers: - # FIXME: SQL might dot that more efficiently - return self.amount / sum(i.weight for i in self.owers) - else: - return 0 + if self.owers: + # FIXME: SQL might dot that more efficiently + return self.amount / sum(i.weight for i in self.owers) + else: + return 0 def __repr__(self): return "<Bill of %s from %s for %s>" % (self.amount, diff --git a/budget/tests.py b/budget/tests.py index 3a3d850..8905a6e 100644 --- a/budget/tests.py +++ b/budget/tests.py @@ -292,10 +292,10 @@ class BudgetTestCase(TestCase): self.assertTrue(models.Project.query.get("demo") is not None) def test_authentication(self): - # try to authenticate without credentials should redirect - # to the authentication page - resp = self.app.post("/authenticate") - self.assertIn("Authentication", resp.data) + # try to authenticate without credentials should redirect + # to the authentication page + resp = self.app.post("/authenticate") + self.assertIn("Authentication", resp.data) # raclette that the login / logout process works self.create_project("raclette") |
