Merge pull request #19881 from edx/LEARNER-7131/improve-403-error-handling
Improve 403 error handling
This commit is contained in:
@@ -321,7 +321,7 @@ class ModuleRenderTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
|
||||
"""Test that anonymous GET is allowed."""
|
||||
dispatch_url = self._get_dispatch_url()
|
||||
response = self.client.get(dispatch_url)
|
||||
self.assertEquals(200, response.status_code)
|
||||
self.assertEquals(403, response.status_code)
|
||||
|
||||
def test_anonymous_post_xblock_callback(self):
|
||||
"""Test that anonymous POST is not allowed."""
|
||||
|
||||
Reference in New Issue
Block a user