Test API

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

Class for testing cubes

send_inputs(**input_mapping)

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

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

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

Raises

TypeError: If the port specified is not an initializer

Raises

ValueError: If the port specified doesn’t exist

start(needs_begin=True)

Method to setup up the cube and call begin.