Fix API tests for the recent change
This commit is contained in:
parent
87bc37f6c8
commit
f6d3238611
1 changed files with 5 additions and 7 deletions
|
@ -394,10 +394,10 @@ class TestCreateNewUser(ApiTestCase):
|
||||||
self.assertEquals('Invalid username auserName: Username must match expression [a-z0-9_]+', json['error_description'])
|
self.assertEquals('Invalid username auserName: Username must match expression [a-z0-9_]+', json['error_description'])
|
||||||
|
|
||||||
def test_createuser(self):
|
def test_createuser(self):
|
||||||
data = self.postResponse(User,
|
data = self.postJsonResponse(User,
|
||||||
data=NEW_USER_DETAILS,
|
data=NEW_USER_DETAILS,
|
||||||
expected_code=201)
|
expected_code=200)
|
||||||
self.assertEquals('"Created"', data)
|
self.assertEquals(True, data['awaiting_verification'])
|
||||||
|
|
||||||
def test_createuser_withteaminvite(self):
|
def test_createuser_withteaminvite(self):
|
||||||
inviter = model.get_user(ADMIN_ACCESS_USER)
|
inviter = model.get_user(ADMIN_ACCESS_USER)
|
||||||
|
@ -409,10 +409,8 @@ class TestCreateNewUser(ApiTestCase):
|
||||||
}
|
}
|
||||||
details.update(NEW_USER_DETAILS);
|
details.update(NEW_USER_DETAILS);
|
||||||
|
|
||||||
data = self.postResponse(User,
|
data = self.postJsonResponse(User, data=details, expected_code=200)
|
||||||
data=details,
|
self.assertEquals(True, data['awaiting_verification'])
|
||||||
expected_code=201)
|
|
||||||
self.assertEquals('"Created"', data)
|
|
||||||
|
|
||||||
# Make sure the user was added to the team.
|
# Make sure the user was added to the team.
|
||||||
self.login(ADMIN_ACCESS_USER)
|
self.login(ADMIN_ACCESS_USER)
|
||||||
|
|
Reference in a new issue