Commit 7352a459 authored by Michal Čihař's avatar Michal Čihař

Add test for billings past due date

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f6cf01f0
......@@ -64,8 +64,17 @@ class BillingTest(TestCase):
self.assertEqual(out.getvalue(), '')
self.add_project()
self.add_project()
out = StringIO()
call_command('billing_check', stdout=out)
self.assertEqual(
out.getvalue(),
'Following billings are over limit:\n * bill (test)\n'
)
self.invoice.delete()
out = StringIO()
call_command('billing_check', stdout=out)
self.assertEqual(
out.getvalue(),
'Following billings are over limit:\n * bill (test)\n'
'Following billings are past due date:\n * bill (test)\n'
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment