Add dash based device monitor #164
4 fail, 21 pass in 2s
Annotations
Check warning on line 0 in src.tests.mapping_test
github-actions / Test Results
test_map_terminals_gui (src.tests.mapping_test) failed
artifacts/pytest-results-3.9/test-results.xml [took 0s]
Raw output
AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f0e184bcac0>
station_with_instruments = <qcodes.station.Station object at 0x7f0e187f5be0>
script = <qumada.measurement.scripts.generic_measurement.Generic_1D_Sweep object at 0x7f0e184bcc40>
def test_map_terminals_gui(mocker: MockerFixture, station_with_instruments, script):
mocker.patch("qumada.instrument.mapping.mapping_gui.QApplication", autospec=True)
mock_main_window = mocker.patch("qumada.instrument.mapping.mapping_gui.MainWindow", autospec=True)
kwargs = {
"components": station_with_instruments.components,
> "terminal_parameters": script.gate_parameters,
"monitoring": False,
}
E AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
src/tests/mapping_test.py:251: AttributeError
Check warning on line 0 in src.tests.mapping_test
github-actions / Test Results
test_mapping_gui_monitoring[True] (src.tests.mapping_test) failed
artifacts/pytest-results-3.9/test-results.xml [took 0s]
Raw output
AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
monitoring = True, qtbot = <pytestqt.qtbot.QtBot object at 0x7f0e184665e0>
station_with_instruments = <qcodes.station.Station object at 0x7f0e187f5be0>
script = <qumada.measurement.scripts.generic_measurement.Generic_1D_Sweep object at 0x7f0e18466af0>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f0e18466100>
@pytest.mark.parametrize("monitoring", [True, False])
def test_mapping_gui_monitoring(monitoring: bool, qtbot, station_with_instruments, script, mocker):
w = MainWindow(
station_with_instruments.components,
> script.gate_parameters,
monitoring=monitoring,
)
E AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
src/tests/mapping_test.py:265: AttributeError
Check warning on line 0 in src.tests.mapping_test
github-actions / Test Results
test_mapping_gui_monitoring[False] (src.tests.mapping_test) failed
artifacts/pytest-results-3.9/test-results.xml [took 0s]
Raw output
AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
monitoring = False, qtbot = <pytestqt.qtbot.QtBot object at 0x7f0e18748df0>
station_with_instruments = <qcodes.station.Station object at 0x7f0e187f5be0>
script = <qumada.measurement.scripts.generic_measurement.Generic_1D_Sweep object at 0x7f0e18748d30>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f0e187482b0>
@pytest.mark.parametrize("monitoring", [True, False])
def test_mapping_gui_monitoring(monitoring: bool, qtbot, station_with_instruments, script, mocker):
w = MainWindow(
station_with_instruments.components,
> script.gate_parameters,
monitoring=monitoring,
)
E AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
src/tests/mapping_test.py:265: AttributeError
Check warning on line 0 in src.tests.mapping_test
github-actions / Test Results
test_mapping_gui_map_automatically (src.tests.mapping_test) failed
artifacts/pytest-results-3.9/test-results.xml [took 0s]
Raw output
AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f0e18436a90>
qtbot = <pytestqt.qtbot.QtBot object at 0x7f0e184367f0>
station_with_instruments = <qcodes.station.Station object at 0x7f0e187f5be0>
script = <qumada.measurement.scripts.generic_measurement.Generic_1D_Sweep object at 0x7f0e18436760>
def test_mapping_gui_map_automatically(mocker, qtbot, station_with_instruments, script):
# mock dialogs (specify behaviour in return_value and skip)
mocker.patch("qumada.instrument.mapping.mapping_gui.MessageBox_notallmapped.exec", return_value=QMessageBox.No)
mocker.patch("qumada.instrument.mapping.mapping_gui.MessageBox_duplicates.exec", return_value=QMessageBox.No)
mocker.patch("qumada.instrument.mapping.mapping_gui.MessageBox_overwrite.exec", return_value=QMessageBox.No)
w = MainWindow(
station_with_instruments.components,
> script.gate_parameters,
)
E AttributeError: 'Generic_1D_Sweep' object has no attribute 'gate_parameters'
src/tests/mapping_test.py:378: AttributeError