Skip to content

Commit 471859d

Browse files
authored
Enable cal time tests for TestGrpc (#1936)
1 parent 46dd206 commit 471859d

1 file changed

Lines changed: 24 additions & 25 deletions

File tree

src/niscope/system_tests/test_system_niscope.py

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,30 @@ def test_acquisition_status(self, multi_instrument_session):
278278
def test_self_cal(self, multi_instrument_session):
279279
multi_instrument_session.self_cal(niscope.Option.SELF_CALIBRATE_ALL_CHANNELS)
280280

281+
def test_get_self_cal_last_date_time(self, single_instrument_session):
282+
last_cal = single_instrument_session.get_self_cal_last_date_and_time()
283+
assert last_cal.month == 12
284+
assert last_cal.day == 21
285+
assert last_cal.year == 1999
286+
assert last_cal.hour == 0
287+
assert last_cal.minute == 0
288+
289+
def test_get_ext_cal_last_date_time(self, single_instrument_session):
290+
last_cal = single_instrument_session.get_ext_cal_last_date_and_time()
291+
assert last_cal.month == 12
292+
assert last_cal.day == 21
293+
assert last_cal.year == 1999
294+
assert last_cal.hour == 0
295+
assert last_cal.minute == 0
296+
297+
def test_get_self_cal_last_temperature(self, single_instrument_session):
298+
last_cal_temp = single_instrument_session.get_self_cal_last_temp()
299+
assert last_cal_temp == 25
300+
301+
def test_get_ext_cal_last_temperature(self, single_instrument_session):
302+
last_cal_temp = single_instrument_session.get_ext_cal_last_temp()
303+
assert last_cal_temp == 25
304+
281305
def test_probe_compensation_signal(self, multi_instrument_session):
282306
multi_instrument_session.probe_compensation_signal_start()
283307
multi_instrument_session.probe_compensation_signal_stop()
@@ -438,31 +462,6 @@ def test_fetch_into(self, multi_instrument_session, fetch_waveform_type, type_mi
438462
assert waveforms[i].channel == expected_channels[i]
439463
assert waveforms[i].record == expected_records[i]
440464

441-
# TODO(danestull): Move these next 4 tests back to the general system tests once added to grpc-device
442-
def test_get_self_cal_last_date_time(self, single_instrument_session):
443-
last_cal = single_instrument_session.get_self_cal_last_date_and_time()
444-
assert last_cal.month == 12
445-
assert last_cal.day == 21
446-
assert last_cal.year == 1999
447-
assert last_cal.hour == 0
448-
assert last_cal.minute == 0
449-
450-
def test_get_ext_cal_last_date_time(self, single_instrument_session):
451-
last_cal = single_instrument_session.get_ext_cal_last_date_and_time()
452-
assert last_cal.month == 12
453-
assert last_cal.day == 21
454-
assert last_cal.year == 1999
455-
assert last_cal.hour == 0
456-
assert last_cal.minute == 0
457-
458-
def test_get_self_cal_last_temperature(self, single_instrument_session):
459-
last_cal_temp = single_instrument_session.get_self_cal_last_temp()
460-
assert last_cal_temp == 25
461-
462-
def test_get_ext_cal_last_temperature(self, single_instrument_session):
463-
last_cal_temp = single_instrument_session.get_ext_cal_last_temp()
464-
assert last_cal_temp == 25
465-
466465
def test_configure_ref_levels(self, single_instrument_session):
467466
single_instrument_session._configure_ref_levels()
468467
assert 90.0 == single_instrument_session.meas_chan_high_ref_level

0 commit comments

Comments
 (0)