mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 09:22:38 +02:00
add test to make it fail
This commit is contained in:
parent
e61540dbbe
commit
d09d19af45
1 changed files with 10 additions and 0 deletions
|
@ -119,6 +119,16 @@ class BudgetTestCase(IhatemoneyTestCase):
|
|||
resp = self.client.get("/raclette/join/token.invalid", follow_redirects=True)
|
||||
self.assertIn("Provided token is invalid", resp.data.decode("utf-8"))
|
||||
|
||||
def test_create_should_remember_project(self):
|
||||
"""Test that creating a project adds it to the "logged in project" list,
|
||||
as it does for authentication
|
||||
"""
|
||||
self.login("raclette")
|
||||
self.post_project("raclette")
|
||||
self.post_project("tartiflette")
|
||||
data = self.client.get("/raclette/").data.decode("utf-8")
|
||||
self.assertEqual(data.count('href="/tartiflette/"'), 1)
|
||||
|
||||
def test_multiple_join(self):
|
||||
"""Test that joining multiple times a project
|
||||
doesn't add it multiple times in the session"""
|
||||
|
|
Loading…
Reference in a new issue