Fix: Test, Products Info

This commit is contained in:
2025-01-11 17:00:17 -05:00
parent 04d76ee7d9
commit 2e291fd0a6
2 changed files with 7 additions and 3 deletions

View File

@@ -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)