-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
The idea here is to setup a the jig into a particular state, then be able to save that at the start of a test. Maybe save/restore would be a better name? Should the state be keep in jig driver or stored locally.
def test():
jig_state = jig.save()
jig.mux.switch(...)
...
jig.mux.switch(...)
...
jig.restore(jig_state)vs
def test():
jig.push()
jig.mux.switch(...)
...
jig.mux.switch(...)
...
jig.pop()Or even a context manager
def test():
with jig:
jig.mux.switch(...)
...
jig.mux.switch(...)
...
# state is automatically restored when exiting the `with` block.Metadata
Metadata
Assignees
Labels
No labels