Skip to content

Commit

Permalink
FIx unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoTavares authored Jan 29, 2024
1 parent 821d38a commit 652ccfd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cuegui/tests/plugins/LogViewPlugin_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def test_shouldUpdateLogFile(self):

def test_shouldHighlightAllSearchResults(self):
self.logViewPlugin.logview_widget._receive_log_results(_LOG_TEXT_1, 0)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(PySide2.QtCore.Qt.CheckState.Unchecked)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(qtpy.QtCore.Qt.CheckState.Unchecked)

self.logViewPlugin.logview_widget._search_box.setText('lorem')
self.logViewPlugin.logview_widget._search_button.click()
Expand All @@ -101,7 +101,8 @@ def test_shouldHighlightAllSearchResults(self):

def test_shouldMoveCursorToSecondSearchResult(self):
self.logViewPlugin.logview_widget._receive_log_results(_LOG_TEXT_1, 0)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(PySide2.QtCore.Qt.CheckState.Unchecked)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(
qtpy.QtCore.Qt.CheckState.Unchecked)

self.logViewPlugin.logview_widget._search_box.setText('lorem')
self.logViewPlugin.logview_widget._search_button.click()
Expand All @@ -114,7 +115,8 @@ def test_shouldMoveCursorToSecondSearchResult(self):

def test_shouldMoveCursorLastSearchResult(self):
self.logViewPlugin.logview_widget._receive_log_results(_LOG_TEXT_1, 0)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(PySide2.QtCore.Qt.CheckState.Unchecked)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(
qtpy.QtCore.Qt.CheckState.Unchecked)

self.logViewPlugin.logview_widget._search_box.setText('lorem')
self.logViewPlugin.logview_widget._search_button.click()
Expand All @@ -127,7 +129,8 @@ def test_shouldMoveCursorLastSearchResult(self):

def test_shouldPerformCaseInsensitiveSearch(self):
self.logViewPlugin.logview_widget._receive_log_results(_LOG_TEXT_1, 0)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(PySide2.QtCore.Qt.CheckState.Checked)
self.logViewPlugin.logview_widget._case_stv_checkbox.setCheckState(
qtpy.QtCore.Qt.CheckState.Checked)
self.logViewPlugin.logview_widget._search_box.setText('lorem')
self.logViewPlugin.logview_widget._search_button.click()
matches = self.logViewPlugin.logview_widget._matches
Expand Down

0 comments on commit 652ccfd

Please sign in to comment.