streamsx.topology.tester_runtime

Runtime tester functionality.

Overview

Module containing runtime functionality for streamsx.topology.tester.

When test is executed any specified Condition instances are executed in the context of the application under test (and not the unittest class instance). This module separates out the runtime execution code from the test definition module tester.

Module contents

Classes

Condition A condition for testing.
class streamsx.topology.tester_runtime.Condition(name=None)

A condition for testing.

Parameters:name (str) – Condition name, must be unique within the tester.
fail()

Fail the condition.

Marks the condition as failed. Once a condition has failed it can never become valid, the test that uses the condition will fail.

valid

Is the condition valid.

A subclass must set valid when the condition becomes valid.