datacenterlight/tests: remove billing_address_id in call to

create_vm_task
This commit is contained in:
M.Ravi 2017-09-29 08:55:30 +02:00
parent 483aa493bb
commit 61a4060e10

View file

@ -75,21 +75,12 @@ class CeleryTaskTestCase(TestCase):
stripe_customer.stripe_id, stripe_customer.stripe_id,
self.token) self.token)
card_details_dict = card_details.get('response_object') card_details_dict = card_details.get('response_object')
billing_address = BillingAddress(
cardholder_name=self.customer_name,
postal_code='1232',
country='CH',
street_address='Monty\'s Street',
city='Hollywood')
billing_address.save()
billing_address_data = {'cardholder_name': self.customer_name, billing_address_data = {'cardholder_name': self.customer_name,
'postal_code': '1231', 'postal_code': '1231',
'country': 'CH', 'country': 'CH',
'token': self.token, 'token': self.token,
'street_address': 'Monty\'s Street', 'street_address': 'Monty\'s Street',
'city': 'Hollywood'} 'city': 'Hollywood'}
billing_address_id = billing_address.id
vm_template_id = template_data.get('id', 1) vm_template_id = template_data.get('id', 1)
cpu = specs.get('cpu') cpu = specs.get('cpu')
@ -125,7 +116,6 @@ class CeleryTaskTestCase(TestCase):
template_data, template_data,
stripe_customer.id, stripe_customer.id,
billing_address_data, billing_address_data,
billing_address_id,
stripe_subscription_obj.id, stripe_subscription_obj.id,
card_details_dict) card_details_dict)
new_vm_id = 0 new_vm_id = 0