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.

27 lines
837 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 .test_common import TestCommon
  5. class TestGeneralLedger(TestCommon):
  6. def _getReportModel(self):
  7. return 'print.journal.webkit'
  8. def _getReportName(self):
  9. return 'account.account_report_print_journal_webkit'
  10. def _getBaseFilters(self):
  11. fy_id = self.model._get_fiscalyear()
  12. vals = self.model.onchange_filter(
  13. filter='filter_period', fiscalyear_id=fy_id)['value']
  14. vals.update({'fiscalyear_id': fy_id})
  15. return vals
  16. def test_common(self):
  17. common_tests = [
  18. x for x in dir(self)
  19. if callable(getattr(self, x)) and x.startswith('common_test_')]
  20. for test in common_tests:
  21. getattr(self, test)()