:mod:`km3pipe.testing` ====================== .. py:module:: km3pipe.testing .. autoapi-nested-parse:: Common unit testing support for km3pipe. .. !! processed by numpydoc !! Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: km3pipe.testing.surrogate .. data:: skip .. data:: skipif .. py:class:: surrogate(path) Bases::class:`object` Add empty module stub that can be imported for every subpath in path. Those stubs can later be patched by mock's patch decorator. This class was written by Kostia Balytskyi (ikostia @github) .. !! processed by numpydoc !! .. attribute:: nothing_to_stub Check if there are no modules to stub .. !! processed by numpydoc !! .. method:: prepare(self) Preparations before actual function call .. !! processed by numpydoc !! .. method:: restore(self) Post-actions to restore initial state of the system .. !! processed by numpydoc !!