style.
This commit is contained in:
parent
e3f571afc5
commit
e17b8f6973
@ -68,7 +68,10 @@ class TestAPI(APITestCase):
|
|||||||
json_response = json.loads(response.content.decode('utf-8'))
|
json_response = json.loads(response.content.decode('utf-8'))
|
||||||
self.assertEqual(response.status_code, 200)
|
self.assertEqual(response.status_code, 200)
|
||||||
self.assertEqual(self.customer.name, json_response[0]['name'])
|
self.assertEqual(self.customer.name, json_response[0]['name'])
|
||||||
self.assertEqual(self.customer.external_id, json_response[0]['external_id'])
|
self.assertEqual(
|
||||||
|
self.customer.external_id,
|
||||||
|
json_response[0]['external_id']
|
||||||
|
)
|
||||||
|
|
||||||
def test_get_sales_for_tryton(self):
|
def test_get_sales_for_tryton(self):
|
||||||
url = '/don_confiao/api/sales/for_tryton'
|
url = '/don_confiao/api/sales/for_tryton'
|
||||||
|
Loading…
Reference in New Issue
Block a user