tests.py

Test the complete procedure of handling a filled in control by a healthprofessional.

Class definitions:

class apps.report.tests.ReportTest(methodName='runTest')[source]

Bases: core.unittest.baseunittest.BaseUnitTest

Test the report functionality by adding a report & message for a controle and an urgent controle

report_for_controle(questionnaire, urgent=False)[source]

Test runner which tries to create a report, message and finishes the handling of a control

Args:
  • questionnaire: the questionnaire_request to use for testing
  • urgent: test the urgent control or default control procedure.
test_report()[source]

Test a report for a normal control and a urgent control