anime_list_apis.test.cache package

Submodules

anime_list_apis.test.cache.TestCache module

class anime_list_apis.test.cache.TestCache.TestCacher(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Cacher

setUp()

Creates a cache :return: None

tearDown()

Removes all generated files and directories :return: None

test_autowrite()

Tests the automatic writing of the cache after x amount of added entries :return: None

test_caching_entry()

Tests caching and retrieving a Media List Entry :return: None

test_caching_primitive_data()

Tests caching primitive data :return: None

test_delayed_autowrite()

Tests that cache data is written to file automatically after a certain amount of added entries :return: None

test_generating_new_cache()

Tests creating a new cache in a custom location :return: None

test_getting_from_other_site_type()

Tests that it’s not possible to get an entry from another site :return: None

test_invalidating_cache()

Tests invalidating cache entries :return: None

test_lifetime()

Tests the lifetime of cache entries :return: None

test_loading_and_retrieving_cache()

Tests writing some data into the cache and then reloading it in a different Cache object :return: None

test_not_being_able_to_fetch_incomplete_list_entry()

Makes sure that one can’t fetch an incomplete media list entry :return: None

test_reloading()

Tests reloading the cache :return: None

test_retrieving_non_existant_data()

Tests retrieving an entry from the cache that doesn’t exist :return: None

test_using_int_or_id_object()

Tests retrieving entries by using ints and Id objects interchangeably :return: None

Module contents