def setUp(self): admin_user = AdminUserFactory.create() self.client.force_authenticate(user=admin_user) ProductCodeFactory.reset_sequence(1) self.product_code = ProductCodeFactory.create() self.complete_data = { "name": "Page Views", "unit": "100k", "price_per_unit": '0.0500', "included_units": '0.0000', "product_code": self.product_code.value }
def setUp(self): admin_user = AdminUserFactory.create() self.client.force_authenticate(user=admin_user) self.complete_data = { "customer_reference": "123456", "first_name": "Bruce", "last_name": "Wayne", "company": "Wayne Enterprises", "email": "*****@*****.**", "address_1": "Batcave St.", "address_2": "Some other address info", "city": "Gotham", "state": "SomeState", "zip_code": "1111", "country": "US", "phone": "+40000000000", "currency": "USD", "extra": "What is there more to say?", "sales_tax_number": "RO5555555", "sales_tax_name": "VAT", "sales_tax_percent": '3.00', "payment_due_days": 5, "consolidated_billing": False, "meta": { 'water': ['plants', '5'] }, "payment_methods": build_absolute_test_url( reverse('payment-method-list', kwargs={'customer_pk': 1})), "transactions": build_absolute_test_url( reverse('transaction-list', kwargs={'customer_pk': 1})) }
def setUp(self): admin_user = AdminUserFactory.create() self.client.force_authenticate(user=admin_user)