Skip to content

Commit

Permalink
changed the shock checkbox test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrequ committed Mar 18, 2024
1 parent 4bb1310 commit eddba58
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ def test_toggle_show_shock_checkbox(app, qtbot):
"""
Test the functionality of the 'Show Shock' checkbox.
"""
initial_state = app.ui.checkBox_display_shock.isChecked()
app.ui.checkBox_display_shock.setChecked(not initial_state)
assert app.ui.checkBox_display_shock.isChecked() == (
not initial_state
) # This should pass
initial_state = app.ui.checkBox_display_shock.setChecked(True)
qtbot.mouseClick(app.ui.checkBox_display_shock, Qt.LeftButton)
assert app.ui.checkBox_display_shock.isChecked() != initial_state

Expand Down

0 comments on commit eddba58

Please sign in to comment.