QA: Fixed a small test in UserAPI
This commit is contained in:
parent
0a403286bf
commit
bd541b59c4
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ class UserTestPlan(unittest.TestCase):
|
||||||
def test_Lecturer_isLecturer(self):
|
def test_Lecturer_isLecturer(self):
|
||||||
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])
|
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])
|
||||||
self.assertEquals(r.status_code, 200)
|
self.assertEquals(r.status_code, 200)
|
||||||
self.assertFalse(r.json()['isLecturer'])
|
self.assertTrue(r.json()['isLecturer'])
|
||||||
|
|
||||||
def test_isClassIdListEmpty_Lecturer(self):
|
def test_isClassIdListEmpty_Lecturer(self):
|
||||||
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])
|
r = requests.get(self.__class__.url_+'api/users/getUserByToken/'+__CONFIG__['TOKENS']['LECTURER'])
|
||||||
|
|
Loading…
Reference in a new issue