forked from DGNum/gestioCOF
Fix tests according to issue #224
This commit is contained in:
parent
96adadce5e
commit
e0285607a0
2 changed files with 119 additions and 4 deletions
|
@ -36,8 +36,7 @@ class TestStats(TestCase):
|
|||
client2 = Client()
|
||||
client2.login(username="Barfoo", password="barfoo")
|
||||
|
||||
# 1. FOO should be able to get these pages but BAR receives a Forbidden
|
||||
# response
|
||||
# 1. FOO should be able to get these pages but BAR receives a 404
|
||||
user_urls = [
|
||||
"/k-fet/accounts/FOO/stat/operations/list",
|
||||
"/k-fet/accounts/FOO/stat/operations?{}".format(
|
||||
|
@ -57,7 +56,7 @@ class TestStats(TestCase):
|
|||
resp = client.get(url)
|
||||
self.assertEqual(200, resp.status_code)
|
||||
resp2 = client2.get(url)
|
||||
self.assertEqual(403, resp2.status_code)
|
||||
self.assertEqual(404, resp2.status_code)
|
||||
|
||||
# 2. FOO is a member of the team and can get these pages but BAR
|
||||
# receives a Redirect response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue