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_nitclk_wait_until_done(multiple_niscope_sessions):
nitclk.configure_for_homogeneous_triggers(multiple_niscope_sessions)
nitclk.synchronize(multiple_niscope_sessions, .001)
nitclk.initiate(multiple_niscope_sessions)
nitclk.wait_until_done(multiple_niscope_sessions, .001)
def test_initialize_one_session(self):
self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate
nitclk.initiate(single_session_reference)
self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(single_session)), _matchers.ViSessionBufferMatcher(single_session))
return
def test_nitclk_is_done(multiple_niscope_sessions):
nitclk.configure_for_homogeneous_triggers(multiple_niscope_sessions)
nitclk.synchronize(multiple_niscope_sessions, .001)
nitclk.initiate(multiple_niscope_sessions)
nitclk.is_done(multiple_niscope_sessions)
def test_nitclk_initiate(multiple_niscope_sessions):
nitclk.configure_for_homogeneous_triggers(multiple_niscope_sessions)
nitclk.synchronize(multiple_niscope_sessions, .001)
nitclk.initiate(multiple_niscope_sessions)
def test_initialize_multiple_sessions(self):
self.patched_library.niTClk_Initiate.side_effect = self.side_effects_helper.niTClk_Initiate
nitclk.initiate(multiple_session_references)
self.patched_library.niTClk_Initiate.assert_called_once_with(_matchers.ViUInt32Matcher(len(multiple_sessions)), _matchers.ViSessionBufferMatcher(multiple_sessions))
return