Skip to content

Commit

Permalink
Release 0.104.2 (#2428)
Browse files Browse the repository at this point in the history
Co-authored-by: cp-at-mit <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 24, 2024
1 parent ebf16af commit 4453857
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Release Notes
=============

Version 0.104.2
---------------

- fix flaky test ordering (#2427)

Version 0.104.1 (Released October 23, 2024)
---------------

Expand Down
8 changes: 5 additions & 3 deletions ecommerce/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,13 @@ def test_product_managers():
"""Test that the default manager returns only active products and the 'all_objects' manager returns all the
products
"""
in_active_products = ProductFactory.create_batch(3, is_active=False)
inactive_products = ProductFactory.create_batch(3, is_active=False)
active_products = ProductFactory.create_batch(2, is_active=True)

assert list(Product.objects.all()) == active_products
assert list(Product.all_objects.all()) == in_active_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
2 changes: 1 addition & 1 deletion main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from main.celery_utils import OffsettingSchedule
from main.sentry import init_sentry

VERSION = "0.104.1"
VERSION = "0.104.2"

log = logging.getLogger()

Expand Down

0 comments on commit 4453857

Please sign in to comment.