#9 feat(Product): add external_id field.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user