first bill generation works
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
This commit is contained in:
parent
fd39526350
commit
d7c0c40926
6 changed files with 136 additions and 65 deletions
|
|
@ -5,6 +5,24 @@ from datetime import datetime, date, timedelta
|
|||
from .models import *
|
||||
from uncloud_service.models import GenericServiceProduct
|
||||
|
||||
class ProductOrderTestCase(TestCase):
|
||||
"""
|
||||
Test products and products <-> order interaction
|
||||
"""
|
||||
|
||||
def setUp(self):
|
||||
self.user = get_user_model().objects.create(
|
||||
username='random_user',
|
||||
email='jane.random@domain.tld')
|
||||
|
||||
def test_update_one_time_product(self):
|
||||
"""
|
||||
One time payment products cannot be updated - can they?
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class BillingAddressTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.user = get_user_model().objects.create(
|
||||
|
|
@ -70,7 +88,7 @@ class BillingAddressTestCase(TestCase):
|
|||
self.assertEqual(BillingAddress.get_address_for(self.user), ba)
|
||||
|
||||
|
||||
class ProductActivationTestCase(TestCase):
|
||||
class BillAndOrderTestCase(TestCase):
|
||||
def setUp(self):
|
||||
self.user_without_address = get_user_model().objects.create(
|
||||
username='no_home_person',
|
||||
|
|
@ -127,8 +145,6 @@ class ProductActivationTestCase(TestCase):
|
|||
)
|
||||
|
||||
|
||||
|
||||
|
||||
def test_bill_one_time_one_bill_record(self):
|
||||
"""
|
||||
Ensure there is only 1 bill record per order
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue