tests.py

This module contains tests for the export functionality and the functions in utils that are not covered by other tests in Remote Care.

Class definitions:

class apps.utils.tests.Exports(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Test class for testing docX & PDF export

get_request()[source]

Generate a fake request

Returns:
A fake request instance
get_source()[source]

Get the HTML source to test

Returns:
The HTML source to test with
test_docx()[source]

Test the DocX export functionality

test_pdf()[source]

Test the PDF export functionality