Skip to content

Commit

Permalink
do a get from db
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries committed Nov 22, 2023
1 parent 0e0b9b7 commit 32aaca4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/reverse/test_catalogue.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ def test_create_simple_product(self):

prd = product_to_db(product_resource)

prd = Product.objects.get(upc="1234323")

self.assertEquals(prd.title, "asdf1")
self.assertTrue(Product.objects.filter(upc="1234323").exists())

def test_create_product_with_related_fields(self):
product_resource = ProductResource(
Expand All @@ -45,6 +46,8 @@ def test_create_product_with_related_fields(self):
)

prd = product_to_db(product_resource)

prd = Product.objects.get(upc="1234323-2")

self.assertEquals(prd.title, "asdf2")

Expand Down

0 comments on commit 32aaca4

Please sign in to comment.