aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney
diff options
context:
space:
mode:
authorAlexandre Avenel <avenel.alexandre@gmail.com>2017-11-11 18:11:15 +0100
committerAlexis Metaireau <alexis@notmyidea.org>2017-11-11 18:11:15 +0100
commit2866c868d55d197de8c39c34debc878b38929d98 (patch)
tree686d0d7c431f62585c946b5e7f3fe13a0579771d /ihatemoney
parent974485690c4a2d5127f2880cf78847c6916c02ce (diff)
downloadihatemoney-mirror-2866c868d55d197de8c39c34debc878b38929d98.zip
ihatemoney-mirror-2866c868d55d197de8c39c34debc878b38929d98.tar.gz
ihatemoney-mirror-2866c868d55d197de8c39c34debc878b38929d98.tar.bz2
Fix some typos using codespell (#285)
Diffstat (limited to 'ihatemoney')
-rw-r--r--ihatemoney/tests/tests.py4
-rw-r--r--ihatemoney/web.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/ihatemoney/tests/tests.py b/ihatemoney/tests/tests.py
index f918746..123ea36 100644
--- a/ihatemoney/tests/tests.py
+++ b/ihatemoney/tests/tests.py
@@ -403,7 +403,7 @@ class BudgetTestCase(IhatemoneyTestCase):
c.get("/exit")
self.assertNotIn('raclette', session)
- # test that whith admin credentials, one can access every project
+ # test that with admin credentials, one can access every project
self.app.config['ADMIN_PASSWORD'] = generate_password_hash("pass")
with self.app.test_client() as c:
resp = c.post("/admin?goto=%2Fraclette", data={'admin_password': 'pass'})
@@ -1192,7 +1192,7 @@ class APITestCase(IhatemoneyTestCase):
self.assertDictEqual(expected, json.loads(req.data.decode('utf-8')))
- # the list of bills should lenght 1
+ # the list of bills should length 1
req = self.client.get("/api/projects/raclette/bills",
headers=self.get_auth("raclette"))
self.assertStatus(200, req)
diff --git a/ihatemoney/web.py b/ihatemoney/web.py
index 7e4c563..efd843c 100644
--- a/ihatemoney/web.py
+++ b/ihatemoney/web.py
@@ -359,7 +359,7 @@ def demo():
Authenticate the user for the demonstration project and redirect him to
the bills list for this project.
- Create a demo project if it doesnt exists yet (or has been deleted)
+ Create a demo project if it doesn't exists yet (or has been deleted)
If the demo project is deactivated, one is redirected to the create project form
"""
is_demo_project_activated = current_app.config['ACTIVATE_DEMO_PROJECT']