plainbox.impl.testing_utils – plainbox specific test tools

Warning

THIS MODULE DOES NOT HAVE STABLE PUBLIC API

plainbox.impl.testing_utils.MockJobDefinition(id, *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(id, 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

comments powered by Disqus