Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_reset_device(session):
default_trigger_mode = session.trigger_mode
assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
session.trigger_mode = nifgen.TriggerMode.STEPPED
non_default_trigger_mode = nifgen.TriggerMode.STEPPED
assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
session.reset_device()
assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS
def test_reset_device(session):
default_trigger_mode = session.trigger_mode
assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
session.trigger_mode = nifgen.TriggerMode.STEPPED
non_default_trigger_mode = nifgen.TriggerMode.STEPPED
assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
session.reset_device()
assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS
def test_reset_device(session):
default_trigger_mode = session.trigger_mode
assert default_trigger_mode == nifgen.TriggerMode.CONTINUOUS
session.trigger_mode = nifgen.TriggerMode.STEPPED
non_default_trigger_mode = nifgen.TriggerMode.STEPPED
assert non_default_trigger_mode == nifgen.TriggerMode.STEPPED
session.reset_device()
assert session.trigger_mode == nifgen.TriggerMode.CONTINUOUS