Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brylie committed Jun 16, 2023
1 parent 5a40bb7 commit c164f53
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions cart/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ def setUp(self) -> None:

# get Site Root
root_page = Page.objects.get(id=1)
# try:
# root_page = Page.objects.get(id=1)
# except Page.DoesNotExist:
# root_page = Page(id=1).save()

# Create HomePage
home_page = HomePage(
Expand Down Expand Up @@ -57,21 +53,6 @@ def setUp(self) -> None:
product_index_page.add_child(instance=self.product1)
product_index_page.add_child(instance=self.product2)

# self.product1 = Product.objects.create(
# id=1, title="Product 1", price=Decimal("9.99")
# )
# self.product2 = Product.objects.create(
# id=2, title="Product 2", price=Decimal("19.99")
# )

# self.product1 = Mock(spec=Product, id=1)
# self.product1.title = "Product 1"
# self.product1.price = Decimal("9.99")

# self.product2: Product = Mock(spec=Product, id=2)
# self.product2.title = "Product 2"
# self.product2.price = Decimal("19.99")

def test_cart_initialization(self) -> None:
cart = Cart(self.request)

Expand Down Expand Up @@ -163,8 +144,4 @@ def tearDown(self) -> None:
# delete all pages
Page.objects.all().delete()

# delete product1 and product2
# self.product1.delete()
# self.product2.delete()

return super().tearDown()

0 comments on commit c164f53

Please sign in to comment.