Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Chilipp committed May 10, 2018
1 parent d73968e commit 27950ca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/widgets/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def test_remove_vlines(self):
``'basic_diagram_vlines.png'`` and compares it with
``'basic_diagram_binary.png'``"""
self.init_reader('basic_diagram_vlines.png')
self.digitizer.txt_max_lw.setText('2')
self.digitizer.txt_min_lw.setText('2')
self.digitizer.cb_max_lw.setChecked(True)
self.digitizer.sp_max_lw.setValue(2)
self.digitizer.sp_min_lw.setValue(2)
QTest.mouseClick(self.digitizer.btn_remove_vlines,
Qt.LeftButton)
QTest.mouseClick(self.straditizer_widgets.apply_button,
Expand All @@ -36,8 +37,9 @@ def test_remove_hlines(self):
``'basic_diagram_hlines.png'`` and compares it with
``'basic_diagram_hlines_removed.png'``"""
self.init_reader('basic_diagram_hlines.png')
self.digitizer.txt_max_lw.setText('2')
self.digitizer.txt_min_lw.setText('2')
self.digitizer.cb_max_lw.setChecked(True)
self.digitizer.sp_max_lw.setValue(2)
self.digitizer.sp_min_lw.setValue(2)
self.digitizer.txt_line_fraction.setText('90')
QTest.mouseClick(self.digitizer.btn_remove_hlines,
Qt.LeftButton)
Expand Down

0 comments on commit 27950ca

Please sign in to comment.