15.2.194. camcops_server.cc_modules.tests.cc_redcap_tests

camcops_server/cc_modules/tests/cc_redcap_tests.py


Copyright (C) 2012, University of Cambridge, Department of Psychiatry. Created by Rudolf Cardinal (rnc1001@cam.ac.uk).

This file is part of CamCOPS.

CamCOPS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CamCOPS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CamCOPS. If not, see <https://www.gnu.org/licenses/>.


class camcops_server.cc_modules.tests.cc_redcap_tests.AnonymousTaskRedcapTests(methodName='runTest')[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.BadConfigurationRedcapTests(*args, **kwargs)[source]
__init__(*args, **kwargs) None[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class camcops_server.cc_modules.tests.cc_redcap_tests.BmiRedcapExportTestCase(*args, **kwargs)[source]
__init__(*args, **kwargs) None[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class camcops_server.cc_modules.tests.cc_redcap_tests.BmiRedcapExportTests(*args, **kwargs)[source]

These are more of a test of the fieldmap code than anything related to the BMI task

class camcops_server.cc_modules.tests.cc_redcap_tests.BmiRedcapUpdateTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.BmiRedcapValidFieldmapTestCase(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.IncorrectPatientIdRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.IncorrectRecordIdRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MedicationTherapyRedcapExportTests(*args, **kwargs)[source]

These are more of a test of the file upload code than anything related to the KhandakerMojoMedicationTherapy task

__init__(*args, **kwargs) None[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class camcops_server.cc_modules.tests.cc_redcap_tests.MissingEventRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MissingInstrumentEventRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MissingInstrumentRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MissingPatientInstrumentRedcapTests(*args, **kwargs)[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MockProject(*args, **kw)[source]
__init__(*args, **kwargs) None[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MockRedcapNewRecordUploader[source]
__init__() None[source]
Parameters
class camcops_server.cc_modules.tests.cc_redcap_tests.MockRedcapTaskExporter[source]
__init__() None[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.MultipleTaskRedcapExportTests(*args, **kwargs)[source]
__init__(*args, **kwargs) None[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class camcops_server.cc_modules.tests.cc_redcap_tests.Phq9RedcapExportTests(*args, **kwargs)[source]

These are more of a test of the fieldmap code than anything related to the PHQ9 task. For these we have also renamed the record_id field.

__init__(*args, **kwargs) None[source]

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class camcops_server.cc_modules.tests.cc_redcap_tests.RedcapExportErrorTests(methodName='runTest')[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.RedcapExportTestCase(methodName='runTest')[source]
setUp() None[source]

Hook method for setting up the test fixture before exercising it.

class camcops_server.cc_modules.tests.cc_redcap_tests.RedcapExporterTests(methodName='runTest')[source]
class camcops_server.cc_modules.tests.cc_redcap_tests.RedcapFieldmapTests(methodName='runTest')[source]