automatminer.tests package

Submodules

automatminer.tests.test_base module

Tests for the base classes.

class automatminer.tests.test_base.TestBaseTransformers(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_DFTransformer()
test_DFTransformer_BaseEstimator_behavior()
class automatminer.tests.test_base.TestTransformerBad

Bases: automatminer.base.DFTransformer

A test transformer, implemented incorrectly.

class automatminer.tests.test_base.TestTransformerGood(config_attr)

Bases: automatminer.base.DFTransformer

A test transformer and logger.

Parameters

config_attr – Some attr to be set at initialization

fit(**kwargs)
transform(**kwargs)

automatminer.tests.test_pipeline module

Tests for the top level interface.

class automatminer.tests.test_pipeline.MatPipeDebugSingleTest(methodName='runTest')

Bases: automatminer.tests.test_pipeline.TestMatPipe

class automatminer.tests.test_pipeline.MatPipeDebugTest(methodName='runTest')

Bases: automatminer.tests.test_pipeline.TestMatPipe

class automatminer.tests.test_pipeline.TestMatPipeSetup(methodName='runTest')

Bases: unittest.case.TestCase

setUp()

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

test_from_preset()
test_instantiation()
automatminer.tests.test_pipeline.make_matpipe_test(config_preset, skip=None)

Create a full matpipe test suite for a particular preset.

Parameters
  • config_preset (str) – A preset to test.

  • skip ([str]) – Names of skippable tests. Check skippables for current lists of tests to skip. Useful for debugging where you only want to run a certain test.

Returns

A unittest for MatPipe as specifically

implemented by a preset.

Return type

TestMatPipe (unittest)

automatminer.tests.test_presets module

Testing the preset configurations for MatPipe.

Mainly ensuring all args can be passed to matpipe constituent parts correctly.

class automatminer.tests.test_presets.TestMatPipePresets(methodName='runTest')

Bases: unittest.case.TestCase

test_caching_powerup()
test_debug()
test_debug_single()
test_express()
test_express_single()
test_heavy()
test_missing()
test_n_jobs_powerup()
test_production()

Module contents