From acac7727c2e2db3b8d8493ac4982154f602750df Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Tue, 30 Mar 2021 14:27:21 +0200 Subject: [PATCH] Fix services tests --- orchestra/contrib/services/tests/test_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/orchestra/contrib/services/tests/test_handler.py b/orchestra/contrib/services/tests/test_handler.py index d6bfad81..17d5d154 100644 --- a/orchestra/contrib/services/tests/test_handler.py +++ b/orchestra/contrib/services/tests/test_handler.py @@ -225,7 +225,7 @@ class HandlerTests(BaseTestCase): account = self.create_account() superplan = Plan.objects.create( name='SUPER', allow_multiple=False, is_combinable=True) - service.rates.create(plan=superplan, quantity=1, price=0) + service.rates.create(plan=superplan, quantity=0, price=0) service.rates.create(plan=superplan, quantity=3, price=10) service.rates.create(plan=superplan, quantity=4, price=9) service.rates.create(plan=superplan, quantity=10, price=1) @@ -269,7 +269,7 @@ class HandlerTests(BaseTestCase): hyperplan = Plan.objects.create( name='HYPER', allow_multiple=False, is_combinable=False) - service.rates.create(plan=hyperplan, quantity=1, price=0) + service.rates.create(plan=hyperplan, quantity=0, price=0) service.rates.create(plan=hyperplan, quantity=20, price=5) account.plans.create(plan=hyperplan) results = service.get_rates(account, cache=False) @@ -362,7 +362,7 @@ class HandlerTests(BaseTestCase): dupeplan = Plan.objects.create( name='DUPE', allow_multiple=True, is_combinable=True) account.plans.create(plan=dupeplan) - service.rates.create(plan=dupeplan, quantity=1, price=0) + service.rates.create(plan=dupeplan, quantity=0, price=0) service.rates.create(plan=dupeplan, quantity=3, price=9) results = service.get_rates(account, cache=False) results = service.rate_method(results, 30)