tests.py

This module defines the tests done patient functionality that is not part of other apps

Class definitions:

class apps.healthperson.patient.tests.PatientTest(methodName='runTest')[source]

Bases: core.unittest.baseunittest.BaseUnitTest

Unittest definitions for patients

check_account(base_url)[source]

Check viewing/editing the account (profile) information for a patient

check_notification(base_url)[source]

Check viewing/editing the notification settings for a patient

check_messages(base_url)[source]

Check viewing messages

Check the search function in the homepage

check_questionnaire_helper(url, count, test_value)[source]

Helper function for testing the filled-in questionnaire details

check_questionnaire_details(base_url)[source]

Check the filled-in questionnaire detail pages

check_model()[source]

Check functions in model.py not covered by other tests but very important for correctly adding new questionnaires etc.

test_patient_functions()[source]

Run all checks for a patient