fixed error in create_company_user view

This commit is contained in:
Sam
2021-03-11 12:32:13 +00:00
parent 8de48c6698
commit ef0fe3716e
3 changed files with 6 additions and 8 deletions

View File

@@ -614,7 +614,7 @@ class CreateCompanyUserTest(APITestCase):
'logo': None,
'city': None,
'address': 'qwer qewr 5',
'geo': None,
'geo': {'longitude': 1.0, 'latitude': 1.0},
'phone': '1234',
'mobile': '4321',
'other_phone': '41423',
@@ -627,6 +627,7 @@ class CreateCompanyUserTest(APITestCase):
}
response = self.client.post(self.endpoint, data=data, format='json')
import ipdb; ipdb.set_trace()
self.assertEquals(response.status_code, 201)
self.assertEquals(len(mail.outbox), 1)