Fix tests for billing
This commit is contained in:
parent
89519e48a9
commit
6a928a2b2a
2 changed files with 12 additions and 4 deletions
|
|
@ -188,9 +188,10 @@ class BillAndOrderTestCase(TestCase):
|
|||
"""
|
||||
|
||||
for ending_date in self.bill_dates:
|
||||
Bill.create_next_bill_for_user(self.recurring_user, ending_date)
|
||||
b = Bill.create_next_bill_for_user(self.recurring_user, ending_date)
|
||||
b.close()
|
||||
|
||||
bills_count = Bill.objects.filter(owner=self.recurring_user).count()
|
||||
bill_count = Bill.objects.filter(owner=self.recurring_user).count()
|
||||
|
||||
self.assertEqual(len(self.bill_dates), bill_count)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue