Set VMPricing when creating HostingOrder
This commit is contained in:
parent
bce5905842
commit
13cd098c60
1 changed files with 3 additions and 2 deletions
|
|
@ -101,7 +101,7 @@ class CeleryTaskTestCase(TestCase):
|
||||||
cpu = specs.get('cpu')
|
cpu = specs.get('cpu')
|
||||||
memory = specs.get('memory')
|
memory = specs.get('memory')
|
||||||
disk_size = specs.get('disk_size')
|
disk_size = specs.get('disk_size')
|
||||||
VMPricing.objects.create(
|
vm_pricing = VMPricing.objects.create(
|
||||||
name="default",
|
name="default",
|
||||||
cores_unit_price=5,
|
cores_unit_price=5,
|
||||||
ram_unit_price=2,
|
ram_unit_price=2,
|
||||||
|
|
@ -146,7 +146,8 @@ class CeleryTaskTestCase(TestCase):
|
||||||
price=specs['price'],
|
price=specs['price'],
|
||||||
vm_id=0,
|
vm_id=0,
|
||||||
customer=stripe_customer,
|
customer=stripe_customer,
|
||||||
billing_address=billing_address
|
billing_address=billing_address,
|
||||||
|
vm_pricing=vm_pricing
|
||||||
)
|
)
|
||||||
|
|
||||||
async_task = create_vm_task.delay(
|
async_task = create_vm_task.delay(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue