From 262281adda1faf03096e6622c4ed8bf3b23a2e96 Mon Sep 17 00:00:00 2001 From: Noa Fouich Date: Thu, 18 Sep 2025 14:40:20 +0200 Subject: [PATCH] Add test case --- counter/tests/test_counter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/counter/tests/test_counter.py b/counter/tests/test_counter.py index d90f9510..453727a1 100644 --- a/counter/tests/test_counter.py +++ b/counter/tests/test_counter.py @@ -583,6 +583,16 @@ class TestCounterClick(TestFullClickBase): - self.beer.selling_price ) + def test_no_fetch_archived_product(self): + counter = baker.make(Counter) + customer = baker.make(Customer) + product_recipe.make(archived=True, counters=[counter]) + unarchived_products = product_recipe.make( + archived=False, counters=[counter], _quantity=3 + ) + customer_products = counter.get_products_for(customer) + assert unarchived_products == customer_products + class TestCounterStats(TestCase): @classmethod