seriesmarker.test.gui.sorting_test module

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

Bases: seriesmarker.test.gui.base.main_window_test.MainWindowTest, seriesmarker.test.database.base.persitent_db_test_case.PersistentDBTestCase

Performs tests of the application’s main window’s features related to sorting.

Note

Cases in this test depend on a specific execution order. Therefore, case names are numbered.

Todo

Might be merged with StoryTest in separate test-class to reduce boilerplate code (setUpClass, setUp).

_check_displayed_data(expected_section, expected_order, expected_result, msg, parent=<PySide.QtCore.QModelIndex(-1, -1, 0x0, QObject(0x0) ) >)[source]
setUp()[source]
classmethod setUpClass()[source]
test_01_sort_on_add()[source]
test_02_sort_on_load()[source]
test_03_sort_series_by_name()[source]
test_04_sort_season_by_name()[source]
test_05_sort_series_by_episodes()[source]
test_06_sort_series_by_progress()[source]

Tests ‘intelligent’ sorting by progress.

test_07_secondary_sorting()[source]

Checks if entries with equal primary sort value are correctly being sorted by series name.

get_suit()[source]