tests.utils.query.mongo.tests_unit

Query tool unit tests

class tests.utils.query.mongo.tests_unit.TestAddSubDocumentRoot(methodName='runTest')

Bases: unittest.case.TestCase

test_add_sub_document_root_to_and_or_query()
test_add_sub_document_root_to_and_query()
test_add_sub_document_root_to_or_query()
test_add_sub_document_root_to_query()
class tests.utils.query.mongo.tests_unit.TestCompileRegex(methodName='runTest')

Bases: unittest.case.TestCase

test_query_with_regex_on_multiple_levels_returns_query_with_compiled_regex()
test_query_with_regex_returns_query_with_compiled_regex()
test_query_without_regex_on_multiple_levels_returns_same_query()
test_query_without_regex_returns_same_query()