15.2.446. camcops_server.tasks.tests.apeq_cpft_perinatal_tests

camcops_server/tasks/tests/apeq_cpft_perinatal_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.tasks.tests.apeq_cpft_perinatal_tests.APEQCPFTPerinatalReportDateRangeTests(*args, **kwargs)[source]
class camcops_server.tasks.tests.apeq_cpft_perinatal_tests.APEQCPFTPerinatalReportTestCase(*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.

setUp() None[source]

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

class camcops_server.tasks.tests.apeq_cpft_perinatal_tests.APEQCPFTPerinatalReportTests(*args, **kwargs)[source]
create_tasks() None[source]

Creates 20 tasks. Should give us:

q1: 0 - 50%,
    1 - 25%
    2 - 25%
q2: 1 - 100%
q3: 0 - 5%
    1 - 20%
    2 - 75%
q4: 0 - 10%
    1 - 40%
    2 - 50%
q5: 0 - 15%
    1 - 55%
    2 - 30%
q6: 1 - 50%
    2 - 50%
ff: 0 - 25%
    1 - 10%
    2 - 15%
    3 - 10%
    4 - 5%
    5 - 35%