Fix tests according to issue #224

This commit is contained in:
Martin Pépin 2019-10-05 02:25:05 +02:00
parent 96adadce5e
commit e0285607a0
No known key found for this signature in database
GPG key ID: E7520278B1774448
2 changed files with 119 additions and 4 deletions

View file

@ -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