-
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.
Re-factored the voltmeters display to decouple app/display.
- Loading branch information
1 parent
01d306f
commit bc8597d
Showing
6 changed files
with
363 additions
and
343 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -248,6 +248,26 @@ def test_open_xrf_detector_viewer_actions(ffapp, qtbot, det_fixture, request): | |
assert "FireflyMainWindow_xrf_detector_vortex_me4" in ffapp.windows.keys() | ||
|
||
|
||
################################################################### | ||
# From: src/firefly/tests/test_voltmeters.py | ||
|
||
def test_open_ion_chamber_window(fake_ion_chambers, ffapp): | ||
# Set up the application | ||
ffapp.setup_window_actions() | ||
ffapp.setup_runengine_actions() | ||
# Simulate clicking on the menu action (they're in alpha order) | ||
window = FireflyMainWindow() | ||
action = ffapp.ion_chamber_actions["It"] | ||
action.trigger() | ||
# See if the window was created | ||
ion_chamber_name = "FireflyMainWindow_ion_chamber_It" | ||
assert ion_chamber_name in ffapp.windows.keys() | ||
macros = ffapp.windows[ion_chamber_name].display_widget().macros() | ||
assert macros["IC"] == "It" | ||
# Clean up | ||
window.close() | ||
|
||
|
||
# ----------------------------------------------------------------------------- | ||
# :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
Oops, something went wrong.