Multi-platform: support multiple files per version #201
@ -62,7 +62,6 @@ class PublicViewsTest(_BaseTestCase):
|
||||
author = extension.authors.first()
|
||||
|
||||
url = extension.get_absolute_url()
|
||||
response = self.client.get(url)
|
||||
|
||||
for account, role in (
|
||||
(None, 'anonymous'),
|
||||
@ -75,6 +74,7 @@ class PublicViewsTest(_BaseTestCase):
|
||||
self.client.logout()
|
||||
if account:
|
||||
self.client.force_login(account)
|
||||
response = self.client.get(url)
|
||||
self.assertEqual(response.status_code, 404)
|
||||
|
||||
def test_anyone_can_view_extension_page_when_listed(self):
|
||||
@ -86,7 +86,6 @@ class PublicViewsTest(_BaseTestCase):
|
||||
author = extension.authors.first()
|
||||
|
||||
url = extension.get_absolute_url()
|
||||
response = self.client.get(url)
|
||||
|
||||
for account, role in (
|
||||
(None, 'anonymous'),
|
||||
@ -99,6 +98,7 @@ class PublicViewsTest(_BaseTestCase):
|
||||
self.client.logout()
|
||||
if account:
|
||||
self.client.force_login(account)
|
||||
response = self.client.get(url)
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user