seriesmarker.test.gui.base.gui_test_case module

This file is part of SeriesMarker.

SeriesMarker is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

SeriesMarker is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with SeriesMarker. If not, see <http://www.gnu.org/licenses/>.

class GUITestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

DELAY = 750
DELAY_TYPING = 50
click(widget, target=PySide.QtCore.QPoint(0, 0), double_click=False, mouse_button=PySide.QtCore.Qt.MouseButton.LeftButton)[source]
header_center(header, section)[source]

Calculates the center of a view’s header section.

Parameters:
  • header (PySide.QtGui.QHeaderView) – The header to calculate a position for.
  • section (int) – The section (column) to calculate a position for.
Returns:

The PySide.QtCore.QPoint referring to the section’s center.

keyhit(widget, key)[source]
move(widget, target=PySide.QtCore.QPoint(0, 0))[source]
classmethod setUpClass()[source]
type(widget, text)[source]
wait()[source]