for any info/changes follow me: @nickmilon

mongoUtils.tests.tests module

Library Tests

Note

  • for safety test database is not dropped after tests are run it must be dropped manually
mongoUtils.tests.tests.setUpStrEr(msg)[source]
class mongoUtils.tests.tests.Test(methodName='runTest')[source]

Bases: unittest.case.TestCase

setUp()[source]
tearDown()[source]
test_01_importsample()[source]
test_02_imports_xlsx()[source]

tests imports from xlsx workbooks and sheets

test_aggregation()[source]
test_mapreduce()[source]
test_schema()[source]
test_helpers_coll_range()[source]

get min max of a collection field

test_helpers_coll_copy()[source]
test_helpers_coll_chunks()[source]

guarantees that all documents are fetched and no overlaps occur

test_pubsub()[source]