Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.104.2 #2429

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading