mlm_insights.tests.test_builder package

Submodules

mlm_insights.tests.test_builder.test_builder module

class mlm_insights.tests.test_builder.test_builder.InsightsTestBuilder

Bases: object

InsightsTestBuilder Component which allows users to build tests/test suites and returns a TestRunner.

add_test(test: TestBase) InsightsTestBuilder

Add Insight test to builder.

Parameters

test : TestContext

Returns

InsightsTestBuilder

An Instance of InsightsTestBuilder.

build() TestRunner

Build the TestBuilder to produce a runner object.

Returns

TestRunner

An Instance of TestRunner.

get_test_count() int
with_context(test_context: TestContext) InsightsTestBuilder

Set the Test context according to the test that it run.

Parameters

test_context : TestContext

Returns

InsightsTestBuilder

An Instance of InsightsTestBuilder.

with_user_defined_tags(user_defined_tags: Dict[str, str]) InsightsTestBuilder

Set the Test/Test Suites-wide user defined tags.

Parameters

user_defined_tags : Key-Value pairs of tags where key and value are both string values

Returns

InsightsTestBuilder

An Instance of InsightsTestBuilder.

Module contents