#9 feat(Product): add external_id field.

This commit is contained in:
2025-07-19 17:32:35 -05:00
parent 46e7181653
commit ba9ef039f4
3 changed files with 28 additions and 0 deletions

View File

@@ -10,6 +10,15 @@ class TestProducts(TestCase):
def setUp(self):
self.client = Client()
def test_create_product(self):
product = Product()
product.name = "Un producto"
product.price = 1000
product.save()
self.assertIsInstance(product, Product)
self.assertIsNone(product.external_id)
def test_import_products(self):
self._import_csv()
all_products = self._get_products()