seriesmarker.test.gui.story_test module

class StoryTest(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.

Note

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

setUp()[source]
classmethod setUpClass()[source]
test_01_add()[source]

Checks if a series can be added via the add-button.

test_02_episode_toggle()[source]

Checks if an episode can be marked as watched.

Also checks if the progress information is updated accordingly.

test_03_episode_tooltip()[source]

Checks if a tooltip is displayed.

A tooltip should be shown when hovering above an episode in the list view.

test_04_update()[source]

Tests the GUI related part of the series update routine.

On update, nodes of removed or added episodes and should be removed or added to or from the tree accordingly. While seasons and episodes are ordered correctly the next time they are loaded from the database after an update (at application start), their visual representation needs to be set in correct order immediately. This test case ensures the proper insertion into respectively removal from the GUI.

This testcase also ensures the proper update of episode count and progress display in the GUI when removing or adding episodes/seasons.

test_05_remove()[source]
get_suit()[source]