コード例 #1
0
 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'})
コード例 #2
0
 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)
コード例 #3
0
 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)
コード例 #4
0
 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}
コード例 #5
0
 def setUp(self):
     branch = create_branch(**BRANCH_SAMPLE_TEST_DICT)
     self.bill = create_bill(**BILL_SAMPLE_TEST_DICT, branch=branch)
コード例 #6
0
 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'})
コード例 #7
0
 def setUp(self):
     branch = create_branch(**BRANCH_SAMPLE_TEST_DICT)
     self.data = copy.deepcopy(BILL_SAMPLE_TEST_DICT)
     self.data['branch'] = branch.slug
コード例 #8
0
 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)