mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Update tests
This commit is contained in:
parent
d9f50983fb
commit
4dc8b35fb4
1 changed files with 4 additions and 4 deletions
|
@ -318,7 +318,7 @@ class BudgetTestCase(IhatemoneyTestCase):
|
||||||
|
|
||||||
result = self.client.get("/raclette/")
|
result = self.client.get("/raclette/")
|
||||||
|
|
||||||
# Empty bill list and no members, should now propose to add participants first
|
# Empty bill list and no participant, should now propose to add participants first
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
'You probably want to <a href="/raclette/members/add"',
|
'You probably want to <a href="/raclette/members/add"',
|
||||||
result.data.decode("utf-8"),
|
result.data.decode("utf-8"),
|
||||||
|
@ -883,7 +883,7 @@ class BudgetTestCase(IhatemoneyTestCase):
|
||||||
follow_redirects=True,
|
follow_redirects=True,
|
||||||
)
|
)
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"<thead><tr><th>Project</th><th>Number of members",
|
"<thead><tr><th>Project</th><th>Number of participants",
|
||||||
resp.data.decode("utf-8"),
|
resp.data.decode("utf-8"),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1844,11 +1844,11 @@ class BudgetTestCase(IhatemoneyTestCase):
|
||||||
import_project(file, project)
|
import_project(file, project)
|
||||||
|
|
||||||
def test_access_other_projects(self):
|
def test_access_other_projects(self):
|
||||||
"""Test that accessing or editing bills and members from another project fails"""
|
"""Test that accessing or editing bills and participants from another project fails"""
|
||||||
# Create project
|
# Create project
|
||||||
self.post_project("raclette")
|
self.post_project("raclette")
|
||||||
|
|
||||||
# Add members
|
# Add participants
|
||||||
self.client.post("/raclette/members/add", data={"name": "zorglub", "weight": 2})
|
self.client.post("/raclette/members/add", data={"name": "zorglub", "weight": 2})
|
||||||
self.client.post("/raclette/members/add", data={"name": "fred"})
|
self.client.post("/raclette/members/add", data={"name": "fred"})
|
||||||
self.client.post("/raclette/members/add", data={"name": "tata"})
|
self.client.post("/raclette/members/add", data={"name": "tata"})
|
||||||
|
|
Loading…
Reference in a new issue