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'])
|
||||
|
||||
def test_createuser(self):
|
||||
data = self.postResponse(User,
|
||||
data = self.postJsonResponse(User,
|
||||
data=NEW_USER_DETAILS,
|
||||
expected_code=201)
|
||||
self.assertEquals('"Created"', data)
|
||||
expected_code=200)
|
||||
self.assertEquals(True, data['awaiting_verification'])
|
||||
|
||||
def test_createuser_withteaminvite(self):
|
||||
inviter = model.get_user(ADMIN_ACCESS_USER)
|
||||
|
@ -409,10 +409,8 @@ class TestCreateNewUser(ApiTestCase):
|
|||
}
|
||||
details.update(NEW_USER_DETAILS);
|
||||
|
||||
data = self.postResponse(User,
|
||||
data=details,
|
||||
expected_code=201)
|
||||
self.assertEquals('"Created"', data)
|
||||
data = self.postJsonResponse(User, data=details, expected_code=200)
|
||||
self.assertEquals(True, data['awaiting_verification'])
|
||||
|
||||
# Make sure the user was added to the team.
|
||||
self.login(ADMIN_ACCESS_USER)
|
||||
|
|
Reference in a new issue