Skip to content

Commit

Permalink
code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit committed Oct 24, 2024
1 parent 4eefda2 commit 259adba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ecommerce/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ def test_product_managers():
inactive_products = ProductFactory.create_batch(3, is_active=False)
active_products = ProductFactory.create_batch(2, is_active=True)

assert set(Product.objects.all().order_by("id")) == set(active_products)
assert set(Product.all_objects.all().order_by("id")) == set(inactive_products + active_products)
assert list(Product.objects.all().order_by("id")) == list(active_products)
assert list(Product.all_objects.all().order_by("id")) == list(inactive_products + active_products)


def test_product_multiple_active_for_single_purchasable_object():
Expand Down

0 comments on commit 259adba

Please sign in to comment.