seriesmarker.test.gui.base.main_window_test module

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

Bases: seriesmarker.test.gui.base.gui_test_case.GUITestCase

check_count_marked_episodes_equals(expected, series_number=0, season_number=0)[source]
check_count_series_equals(expected)[source]
check_list_view_displays(expected, series_number, season_number, episode_number, column=1, role=PySide.QtCore.Qt.ItemDataRole.DisplayRole)[source]
check_tree_view_displays(expected, index)[source]
click_add_button(times=1)[source]
expand_series(series_number=0)[source]

Expands the series with given index in the main window.

Parameters:series_number (int) – The index of the series to expand, from top to bottom as displayed in the main window, starting at zero.
find_click_target(series_number=0, season_number=None, episode_number=None, offset=None)[source]

Finds the coordinates of an item in the tree view.

Parameters:series_number (int The number of the series to find the coordinates for.) – The number of the series to find the coordinates for.
Returns:The viewport of the tree view and the coordinates of the item’s center.
get_index(series_number, season_number=None, episode_number=None, column=0, model=None)[source]
mark_episode(series_number, season_number, episode_number, expected=PySide.QtCore.Qt.CheckState.Checked)[source]
select(series_number, season_number=None)[source]
setUp()[source]
classmethod setUpClass()[source]
tearDown()[source]