Sea v0.5.0 Sea.SignalMocking View Source

Provides helpers for mocking signals with the Mox library.

Link to this section Summary

Functions

Defines mock on specific signal module for testing purposes

Stubs specific signal with noop so that side-effects wouldn’t get called

Passes through actual signal implementation so that side-effects would get called

Link to this section Functions

Link to this function defsignalmock(signal_mod) View Source

Defines mock on specific signal module for testing purposes.

Link to this function disable_signal(signal_mod) View Source

Stubs specific signal with noop so that side-effects wouldn’t get called.

Link to this function enable_signal(signal_mod) View Source

Passes through actual signal implementation so that side-effects would get called.