toktokkie.test.commands package

Submodules

toktokkie.test.commands.TestIconizeCommand module

class toktokkie.test.commands.TestIconizeCommand.TestIconizerCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the iconize command

cleanup()

Resets the DummyProcedure :return: None

test_iconizing()

Tests printing directory info :return: None

toktokkie.test.commands.TestIdFetchCommand module

class toktokkie.test.commands.TestIdFetchCommand.TestIdFetchCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the id-fetch command

execute_id_fetch_check(name: str, id_type: toktokkie.enums.IdType, expected_id: str, to_delete: Optional[List[toktokkie.enums.IdType]] = None)

Tests fetching a particular ID type :param name: The name of the metadata directory :param id_type: The type of ID to fetch :param expected_id: The expected ID :param to_delete: Additional IDs to delete before fetching :return: None

test_fetching_anilist_and_myanimelist_id_using_mangadex()

Tests fetching anilist and myanimelist IDs using mangadex IDs :return: None

test_fetching_anilist_id_using_myanimelist()

Tests fetching anilist IDs based on myanimelist IDs :return: None

test_fetching_ids_for_seasons()

Tests fetching IDs for seasons :return: None

test_fetching_imdb_id_using_tvdb()

Tests fetching IMDB IDs using tvdb ids :return: None

toktokkie.test.commands.TestMetadataAddCommand module

class toktokkie.test.commands.TestMetadataAddCommand.TestMetadataAddCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the metadata-add command

test_adding_exclude()

Tests adding a tv metadata exclude :return: None

test_adding_existing_season()

Tests adding a season to a tv metadata that already exists :return: None

test_adding_multi_episode()

Tests adding a tv metadata multi episde :return: None

test_adding_season()

Tests adding a season to a tv metadata :return: None

test_invalid_directory_for_mode()

Tests using an incorrect directory for the metadata-add mode :return: None

toktokkie.test.commands.TestMetadataGenCommand module

class toktokkie.test.commands.TestMetadataGenCommand.TestMetadataGenCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the metadata-gen command

test_generating_metadata()

Tests using the command to create metadata :return: None

test_generating_non_existant_directory()

Tests if attempting to generate metadata for a non-existing directory fails :return: None

test_generating_where_pre_prompt_fails()

Tests if attempting to generate metadata for a directory that does not successfully pass the pre-prompt checks fails :return: None

toktokkie.test.commands.TestMetadataValidateCommand module

class toktokkie.test.commands.TestMetadataValidateCommand.TestMetadataValidateCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the metadata-validate command

test_validation()

Tests the validation of directories :return: None

toktokkie.test.commands.TestMusicTagCommand module

class toktokkie.test.commands.TestMusicTagCommand.TestMusicTagCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the music-tag command

test_running_music_tag_command()

Tests running the music-tag command :return: None

toktokkie.test.commands.TestPrintCommand module

class toktokkie.test.commands.TestPrintCommand.TestPrintCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the print command

test_printing_directory_info()

Tests printing directory info :return: None

toktokkie.test.commands.TestRenameCommand module

class toktokkie.test.commands.TestRenameCommand.TestRenameCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the rename command

test_renaming()

Tests simply renaming using the rename command :return: None

test_renaming_title()

Tests renaming the title of the directory :return: None

test_renaming_with_noconfirm()

Tests renaming without confirmation :return: None

toktokkie.test.commands.TestYoutubeMusicDlCommand module

class toktokkie.test.commands.TestYoutubeMusicDlCommand.TestYoutubeDlCommand(methodName='runTest')

Bases: toktokkie.test.TestFramework._TestFramework

Class that tests the youtube-music-dl command

empty_2_url = 'https://www.youtube.com/watch?v=ns3fB82nYl0'
empty_3_url = 'https://www.youtube.com/watch?v=3MtYLaRzBu8'
empty_playlist_url = 'https://www.youtube.com/playlist?list=PL5oBP8UuyjH60e6Y5lusXZ8uGEVnQtdGm'
empty_url = 'https://www.youtube.com/watch?v=YpfSq487XWM'
test_downloading_multiple_songs()

Tests downloading multiple songs :return: None

test_downloading_playlist_album()

Tests downloading a playlist and storing it as its own album :return: None

test_downloading_song()

Tests downloading a song using youtube-dl :return: None

test_invalid_metadata()

Tests if invalid metadata is caught correctly :return: None

test_music_only()

Tests downloading music only :return: None

test_repeated_download()

Tests if repeated downloads of an album doesn’t break existing files. :return: None

Module contents