Skip to content

Commit

Permalink
Add more unit tests for the MenuActions module. (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcipriano authored Feb 20, 2020
1 parent 2efd147 commit 5b5bd56
Show file tree
Hide file tree
Showing 2 changed files with 714 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cuegui/cuegui/MenuActions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,9 @@ def editSize(self, rpcObjects=None):
decimalPlaces)
if choice:
msg = QtWidgets.QMessageBox()
msg.setText("You are about to modify a number that can effect a shows billing. Are you in PSR-Resources?")
msg.setText(
"You are about to modify a number that can affect a show's billing. Are you "
"sure you want to do this?")
msg.setStandardButtons(QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No)
msg.setDefaultButton(QtWidgets.QMessageBox.No)
if msg.exec_() == QtWidgets.QMessageBox.No:
Expand Down Expand Up @@ -1514,7 +1516,7 @@ def delete(self, rpcObjects=None):
if matchers:
if cuegui.Utils.questionBoxYesNo(self._caller, "Confirm",
"Delete selected matchers?",
[matcher.data.name for matcher in matchers]):
[matcher.name() for matcher in matchers]):
for matcher in matchers:
matcher.delete()
self._update()
Expand Down Expand Up @@ -1542,7 +1544,7 @@ def delete(self, rpcObjects=None):
if actions:
if cuegui.Utils.questionBoxYesNo(self._caller, "Confirm",
"Delete selected actions?",
[action.data.name for action in actions]):
[action.name() for action in actions]):
for action in actions:
action.delete()
self._update()
Expand Down
Loading

0 comments on commit 5b5bd56

Please sign in to comment.