Skip to content

Commit

Permalink
fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
specialunderwear committed Mar 18, 2024
1 parent f3f041e commit a561162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oscarapi/tests/unit/testproduct.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def test_product_attributes(self):
self.assertEqual(attributes_by_name["datetime"], "2018-01-02T10:45:00Z")
self.assertIsInstance(attributes_by_name["file"], str)
self.assertEqual(
attributes_by_name["file"], "/media/images/products/2018/01/sony-xa50ES.pdf"
attributes_by_name["file"], "http://testserver/media/images/products/2018/01/sony-xa50ES.pdf"
)
self.assertIsInstance(attributes_by_name["float"], float)
self.assertEqual(attributes_by_name["float"], 3.2)
Expand All @@ -247,7 +247,7 @@ def test_product_attributes(self):
)
self.assertIsInstance(attributes_by_name["image"], str)
self.assertEqual(
attributes_by_name["image"], "/media/images/products/2018/01/IMG_3777.JPG"
attributes_by_name["image"], "http://testserver/media/images/products/2018/01/IMG_3777.JPG"
)
self.assertIsInstance(attributes_by_name["integer"], int)
self.assertEqual(attributes_by_name["integer"], 7)
Expand Down

0 comments on commit a561162

Please sign in to comment.