Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 24 additions & 25 deletions src/niscope/system_tests/test_system_niscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,30 @@ def test_acquisition_status(self, multi_instrument_session):
def test_self_cal(self, multi_instrument_session):
multi_instrument_session.self_cal(niscope.Option.SELF_CALIBRATE_ALL_CHANNELS)

def test_get_self_cal_last_date_time(self, single_instrument_session):
last_cal = single_instrument_session.get_self_cal_last_date_and_time()
assert last_cal.month == 12
assert last_cal.day == 21
assert last_cal.year == 1999
assert last_cal.hour == 0
assert last_cal.minute == 0

def test_get_ext_cal_last_date_time(self, single_instrument_session):
last_cal = single_instrument_session.get_ext_cal_last_date_and_time()
assert last_cal.month == 12
assert last_cal.day == 21
assert last_cal.year == 1999
assert last_cal.hour == 0
assert last_cal.minute == 0

def test_get_self_cal_last_temperature(self, single_instrument_session):
last_cal_temp = single_instrument_session.get_self_cal_last_temp()
assert last_cal_temp == 25

def test_get_ext_cal_last_temperature(self, single_instrument_session):
last_cal_temp = single_instrument_session.get_ext_cal_last_temp()
assert last_cal_temp == 25

def test_probe_compensation_signal(self, multi_instrument_session):
multi_instrument_session.probe_compensation_signal_start()
multi_instrument_session.probe_compensation_signal_stop()
Expand Down Expand Up @@ -438,31 +462,6 @@ def test_fetch_into(self, multi_instrument_session, fetch_waveform_type, type_mi
assert waveforms[i].channel == expected_channels[i]
assert waveforms[i].record == expected_records[i]

# TODO(danestull): Move these next 4 tests back to the general system tests once added to grpc-device
def test_get_self_cal_last_date_time(self, single_instrument_session):
last_cal = single_instrument_session.get_self_cal_last_date_and_time()
assert last_cal.month == 12
assert last_cal.day == 21
assert last_cal.year == 1999
assert last_cal.hour == 0
assert last_cal.minute == 0

def test_get_ext_cal_last_date_time(self, single_instrument_session):
last_cal = single_instrument_session.get_ext_cal_last_date_and_time()
assert last_cal.month == 12
assert last_cal.day == 21
assert last_cal.year == 1999
assert last_cal.hour == 0
assert last_cal.minute == 0

def test_get_self_cal_last_temperature(self, single_instrument_session):
last_cal_temp = single_instrument_session.get_self_cal_last_temp()
assert last_cal_temp == 25

def test_get_ext_cal_last_temperature(self, single_instrument_session):
last_cal_temp = single_instrument_session.get_ext_cal_last_temp()
assert last_cal_temp == 25

def test_configure_ref_levels(self, single_instrument_session):
single_instrument_session._configure_ref_levels()
assert 90.0 == single_instrument_session.meas_chan_high_ref_level
Expand Down