Closed Christian-B closed 3 years ago
The steps that tests needed to do before (and after) accessing configs or global variables was getting confusing.
This set of PRs adds a single unittest_Setup method which
Allows the get_config and global_variables methods to raise an exception in neither unittest_setup nor sim.setup() was called.
The error messages are targeted at none unit test usage,
While many test do not actually need unittest_step the choice was to call it from all except.
Everything looks OK. Comments are in:
Those are both minor so happy for this to be merged if the comments are not agreed with, or things changed and then merged.
The steps that tests needed to do before (and after) accessing configs or global variables was getting confusing.
This set of PRs adds a single unittest_Setup method which
Allows the get_config and global_variables methods to raise an exception in neither unittest_setup nor sim.setup() was called.
The error messages are targeted at none unit test usage,
While many test do not actually need unittest_step the choice was to call it from all except.