flowserv.tests.worker module

Helper methods for worker classes unit tests.

flowserv.tests.worker.a_plus_b(a: int, b: int) int

Simple helper function for testing code steps.

Returns the sum of the two arguments.

flowserv.tests.worker.multi_by_x(filename: str, x: int) int

Read input file with single integer value (in Json format) and multiplies the value with the given x.

Expects a Json object with format: {“value”: v}

Returns the multiplication result.