def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch) self.payment = create_payment(payment_date='2017-12-01', bill=self.bill) self.data = PaymentSerializer(self.payment).data self.data.update({'due_date': '2000-12-12'})
def setUp(self): self.branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.branch.save() self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=self.branch) self.bill.save() self.old_count = Payment.objects.count() self.payment = create_payment(payment_date='2017-12-01', bill=self.bill)
def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch) self.payment = create_payment(payment_date='2017-12-01', bill=self.bill)
def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.data = BILL_SAMPLE_TEST_DICT self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch) self.data = {'payment_date': '2017-12-01', 'bill': self.bill.slug}
def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch)
def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch) self.data = BillSerializer(self.bill).data self.data.update({'description': 'Whole wheat 10 ounce bags'})
def setUp(self): branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.data = copy.deepcopy(BILL_SAMPLE_TEST_DICT) self.data['branch'] = branch.slug
def setUp(self): self.old_count = Bill.objects.count() self.branch = create_branch(**BRANCH_SAMPLE_TEST_DICT) self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=self.branch)