plainbox.impl.testing_utils – plainbox specific test tools

Warning

THIS MODULE DOES NOT HAVE STABLE PUBLIC API

plainbox.impl.testing_utils.MockJobDefinition(name, *args, **kwargs)[source]

Mock for JobDefinition class

plainbox.impl.testing_utils.make_io_log(io_log, io_log_dir)[source]

Make the io logs serialization to json and return the saved file pathname WARNING: The caller has to remove the file once done with it!

plainbox.impl.testing_utils.make_job(name, plugin='dummy', requires=None, depends=None, **kwargs)[source]

Make and return a dummy JobDefinition instance

plainbox.impl.testing_utils.make_job_result(outcome='dummy')[source]

Make and return a dummy JobResult instance

plainbox.impl.testing_utils.suppress_warnings(func)[source]

Suppress all warnings from the decorated function

Previous topic

plainbox.impl.symbol – Symbol Type

Next topic

plainbox.impl.transport – shared code for test data transports

This Page