state
and payload
, you can inject your own and test whether the outcome is correct. This section will use pytest
examples.
main
. This will initialise state and make event handlers available. The initial state is available in the module, at main.wf.initial_state
provided you imported writer
as wf
.
WriterState
class in writer.core
. Pass a dictionary when constructing it.