Update Permissions to use latest edx-drf-extensions and rest_condition

This commit is contained in:
Nimisha Asthagiri
2018-06-28 18:13:23 -04:00
parent 522349c502
commit ce4cb53672
7 changed files with 61 additions and 77 deletions

View File

@@ -116,7 +116,7 @@ class MobileAuthUserTestMixin(MobileAuthTestMixin):
"""
def test_invalid_user(self):
self.login_and_enroll()
self.api_response(expected_response_code=404, username='no_user')
self.api_response(expected_response_code=403, username='no_user')
def test_other_user(self):
# login and enroll as the test user
@@ -131,7 +131,7 @@ class MobileAuthUserTestMixin(MobileAuthTestMixin):
# now login and call the API as the test user
self.login()
self.api_response(expected_response_code=404, username=other.username)
self.api_response(expected_response_code=403, username=other.username)
@ddt.ddt