-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restored functionality to the voltmeters window after refactoring.
- Loading branch information
1 parent
a3dacca
commit f11e378
Showing
6 changed files
with
64 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,6 +142,26 @@ def test_autostart_changed(controller, qtbot): | |
assert autostart_action.isChecked() | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_ion_chamber_details_window(qtbot, sim_registry, I0, controller): | ||
"""Check that the controller opens ion chamber windows from voltmeters | ||
display. | ||
""" | ||
vm_action = controller.actions.voltmeter | ||
ic_action = controller.actions.ion_chambers['I0'] | ||
# Create the ion chamber display | ||
vm_action = controller.actions.voltmeter | ||
with qtbot.waitSignal(vm_action.window_shown, timeout=1): | ||
vm_action.trigger() | ||
vm_display = vm_action.window.display_widget() | ||
qtbot.addWidget(vm_display) | ||
await vm_display.update_devices(sim_registry) | ||
# Click the ion chamber button | ||
details_button = vm_display._ion_chamber_rows[0].details_button | ||
with qtbot.waitSignal(ic_action.window_shown, timeout=1000): | ||
details_button.click() | ||
|
||
# ----------------------------------------------------------------------------- | ||
# :author: Mark Wolfman | ||
# :email: [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters