Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
eae8191f
Commit
eae8191f
authored
2 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Add smoke test for help dialogs
parent
f830824a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#88147
passed
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
b_asic/GUI/main_window.py
+3
-3
3 additions, 3 deletions
b_asic/GUI/main_window.py
test/test_gui.py
+13
-0
13 additions, 0 deletions
test/test_gui.py
with
16 additions
and
3 deletions
b_asic/GUI/main_window.py
+
3
−
3
View file @
eae8191f
...
@@ -739,15 +739,15 @@ class MainWindow(QMainWindow):
...
@@ -739,15 +739,15 @@ class MainWindow(QMainWindow):
# Kinda buggy because of the separate window in the same thread.
# Kinda buggy because of the separate window in the same thread.
self
.
dialog
.
simulate
.
connect
(
self
.
_simulate_sfg
)
self
.
dialog
.
simulate
.
connect
(
self
.
_simulate_sfg
)
def
display_faq_page
(
self
):
def
display_faq_page
(
self
,
event
=
None
):
self
.
faq_page
=
FaqWindow
(
self
)
self
.
faq_page
=
FaqWindow
(
self
)
self
.
faq_page
.
scroll_area
.
show
()
self
.
faq_page
.
scroll_area
.
show
()
def
display_about_page
(
self
):
def
display_about_page
(
self
,
event
=
None
):
self
.
about_page
=
AboutWindow
(
self
)
self
.
about_page
=
AboutWindow
(
self
)
self
.
about_page
.
show
()
self
.
about_page
.
show
()
def
display_keybinds_page
(
self
):
def
display_keybinds_page
(
self
,
event
=
None
):
self
.
keybinds_page
=
KeybindsWindow
(
self
)
self
.
keybinds_page
=
KeybindsWindow
(
self
)
self
.
keybinds_page
.
show
()
self
.
keybinds_page
.
show
()
...
...
This diff is collapsed.
Click to expand it.
test/test_gui.py
+
13
−
0
View file @
eae8191f
...
@@ -127,3 +127,16 @@ def test_select_operation(qtbot, datadir):
...
@@ -127,3 +127,16 @@ def test_select_operation(qtbot, datadir):
assert
len
(
widget
.
pressed_operations
)
==
1
assert
len
(
widget
.
pressed_operations
)
==
1
widget
.
exit_app
()
widget
.
exit_app
()
def
test_help_dialogs
(
qtbot
):
# Smoke test to open up the "help dialogs"
# Should really test doing this through the menus an/or closing them
widget
=
GUI
.
MainWindow
()
qtbot
.
addWidget
(
widget
)
widget
.
display_faq_page
()
widget
.
display_about_page
()
widget
.
display_keybinds_page
()
widget
.
exit_app
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment