research.tests package

Module contents

Submodules

research.tests.factories module

class research.tests.factories.StudyFactory

Bases: factory.django.DjangoModelFactory

collaborators = <factory.declarations.RelatedFactory object>
created = <factory.declarations.LazyAttribute object>
description = <factory.faker.Faker object>
modified = <factory.declarations.LazyAttribute object>
subjects = <factory.declarations.RelatedFactory object>
title = <factory.faker.Faker object>
class research.tests.factories.SubjectFactory

Bases: factory.django.DjangoModelFactory

date_of_birth = <factory.faker.Faker object>
dominant_hand = <factory.fuzzy.FuzzyChoice object>
first_name = <factory.faker.Faker object>
gender = <factory.fuzzy.FuzzyChoice object>
id_number = <factory.fuzzy.FuzzyText object>
last_name = <factory.faker.Faker object>
sex = <factory.fuzzy.FuzzyChoice object>

research.tests.test_app_config module

class research.tests.test_app_config.ResearchConfigTest(methodName='runTest')

Bases: django.test.testcases.TestCase

test_apps()

research.tests.test_models module

class research.tests.test_models.StudyModelTestCase(methodName='runTest')

Bases: django.test.testcases.TestCase

add_subject(study, exception_msg='Failed to add subject to study!')
setUp()

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

test_add_subjects_to_study()
test_str()
class research.tests.test_models.SubjectModelTestCase(methodName='runTest')

Bases: django.test.testcases.TestCase

setUp()

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

test_dominant_hand_choices()
test_gender_choices()
test_get_full_name()
test_invalid_dominant_hand_choice()
test_invalid_gender_choice()
test_invalid_sex_choice()
test_not_future_birthdate_validator()
test_null_char_field()
test_sex_choices()
test_str()

research.tests.test_views module