Remove orderrecord
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
db1a69561b
commit
78d1de9031
4 changed files with 37 additions and 45 deletions
|
|
@ -12,6 +12,14 @@ class ProductActivationTestCase(TestCase):
|
|||
username='jdoe',
|
||||
email='john.doe@domain.tld')
|
||||
|
||||
self.recurring_user = get_user_model().objects.create(
|
||||
username='recurrent_product_user',
|
||||
email='jane.doe@domain.tld')
|
||||
|
||||
self.user_without_address = get_user_model().objects.create(
|
||||
username='no_home_person',
|
||||
email='far.away@domain.tld')
|
||||
|
||||
self.billing_address = BillingAddress.objects.create(
|
||||
owner=self.user,
|
||||
organization = 'Test org',
|
||||
|
|
@ -19,6 +27,13 @@ class ProductActivationTestCase(TestCase):
|
|||
city="unknown",
|
||||
postal_code="unknown")
|
||||
|
||||
self.billing_address = BillingAddress.objects.create(
|
||||
owner=self.recurring_user,
|
||||
organization = 'Test org',
|
||||
street="Somewhere",
|
||||
city="Else",
|
||||
postal_code="unknown")
|
||||
|
||||
self.order_meta = {}
|
||||
self.order_meta[1] = {
|
||||
'starting_date': timezone.make_aware(datetime.datetime(2020,3,3)),
|
||||
|
|
@ -46,9 +61,9 @@ class ProductActivationTestCase(TestCase):
|
|||
|
||||
self.assertEqual(self.one_time_order.billrecord_set.count(), 1)
|
||||
|
||||
def test_bill_sum(self):
|
||||
def test_bill_sum_onetime(self):
|
||||
"""
|
||||
Ensure there is only 1 bill record per order
|
||||
Check the bill sum for a single one time order
|
||||
"""
|
||||
|
||||
bill = Bill.create_next_bill_for_user(self.user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue