Fix: Test, Products Info
This commit is contained in:
		| @@ -101,7 +101,6 @@ class DonConfiaoApiRouteTestCase( | ||||
|             template, = ProductTemplate.create([{ | ||||
|                 'name': 'Product', | ||||
|                 'default_uom': Uom.search([('name', '=', 'Unit')])[0].id, | ||||
|                 'list_price': 5000 | ||||
|             }]) | ||||
|  | ||||
|             Product.create([{'template': template.id}]) | ||||
| @@ -129,8 +128,8 @@ class DonConfiaoApiRouteTestCase( | ||||
|         products = json.loads( | ||||
|             response.get_data().decode()) | ||||
|  | ||||
|         raise Exception(products) | ||||
|         self.assertEqual(response.status_code, HTTPStatus.OK) | ||||
|         self.assertEqual(len(products), 2) | ||||
|  | ||||
|     def test_get_sales(self): | ||||
|         pool = Pool(DB_NAME) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user