Test API

class floe.test.CubeTestRunner(cube, parameters=None)

Class for testing cubes


Method for sending test input to a cube. :param input_mapping: A series of key-value pairs where the keys are port names and the values are lists of inputs to be sent to the cube. Note: start() must be called prior to this method.

set_initializer_input(port, iterable)

Method for setting up initializer data on the test cube

  • port (string) – Name of the port to set the initializer data on

  • iterable (iter) – Set of iterable objects to return from the initializer port


TypeError: If the port specified is not an initializer


ValueError: If the port specified doesn’t exist


Method to setup up the cube and call begin.