Fix tab indentation

This commit is contained in:
0livd 2017-03-11 14:28:17 +01:00
parent e35480d6b7
commit 108970eb50
2 changed files with 9 additions and 9 deletions

View file

@ -255,11 +255,11 @@ class Bill(db.Model):
def pay_each(self): def pay_each(self):
"""Compute what each share has to pay""" """Compute what each share has to pay"""
if self.owers: if self.owers:
# FIXME: SQL might dot that more efficiently # FIXME: SQL might dot that more efficiently
return self.amount / sum(i.weight for i in self.owers) return self.amount / sum(i.weight for i in self.owers)
else: else:
return 0 return 0
def __repr__(self): def __repr__(self):
return "<Bill of %s from %s for %s>" % (self.amount, return "<Bill of %s from %s for %s>" % (self.amount,

View file

@ -292,10 +292,10 @@ class BudgetTestCase(TestCase):
self.assertTrue(models.Project.query.get("demo") is not None) self.assertTrue(models.Project.query.get("demo") is not None)
def test_authentication(self): def test_authentication(self):
# try to authenticate without credentials should redirect # try to authenticate without credentials should redirect
# to the authentication page # to the authentication page
resp = self.app.post("/authenticate") resp = self.app.post("/authenticate")
self.assertIn("Authentication", resp.data) self.assertIn("Authentication", resp.data)
# raclette that the login / logout process works # raclette that the login / logout process works
self.create_project("raclette") self.create_project("raclette")