You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
712 B

  1. # -*- coding: utf-8 -*-
  2. # Copyright 2009-2017 Noviat.
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  4. from datetime import datetime
  5. from .test_common import TestCommon
  6. class TestOpenInvoices(TestCommon):
  7. def _getReportModel(self):
  8. return 'open.invoices.webkit'
  9. def _getReportName(self):
  10. return 'account.account_report_open_invoices_webkit'
  11. def _getBaseFilters(self):
  12. return {'until_date': '%s-12-31' % (datetime.now().year)}
  13. def test_common(self):
  14. common_tests = [
  15. x for x in dir(self)
  16. if callable(getattr(self, x)) and x.startswith('common_test_')]
  17. for test in common_tests:
  18. getattr(self, test)()