anime_list_apis.test.models.attributes package

Submodules

anime_list_apis.test.models.attributes.TestDate module

class anime_list_apis.test.models.attributes.TestDate.TestDate(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Date Attribute class

test_deserialization()

Tests deserializing a Date object :return: None

test_equality()

Tests that the equality of the objects is handled correctly :return: None

test_invalid_constructor_parameters()

Tests using invalid parameter types with the constructor :return: None

test_invalid_deserialization()

Tests that invalid serialized data raises ValueErrors when deserialized :return: None

test_serialization()

Tests serializing a Date object :return: None

anime_list_apis.test.models.attributes.TestId module

class anime_list_apis.test.models.attributes.TestId.TestId(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Id Attribute class

test_deserialization()

Tests deserializing an ID object :return: None

test_equality()

Tests that the equality of the objects is handled correctly :return: None

test_fetching_different_id_types()

Tests generating an ID using the constructor and fetching the different IDs :return: None

test_invalid_constructor_parameters()

Tests using invalid parameter types with the constructor :return: None

test_invalid_deserialization()

Tests that invalid serialized data raises ValueErrors when deserialized :return: None

test_no_entries()

Tests that the constructor raises a ValueError when no ID at all is provided :return: None

test_no_valid_entries()

Tests that providing None values as the only IDs still result in a ValueError :return: None

test_serialization()

Tests serializing an ID object :return: None

test_setting_ids()

Tests manually setting IDs after construction :return: None

test_setting_invalid_ids()

Tests setting ids that are invalid types :return: None

test_string_representation()

Tests that the string representation is correct :return: None

test_unfilled_entries()

Tests that unfilled ID entries lead to Null values for the respective IDs :return: None

anime_list_apis.test.models.attributes.TestRelation module

class anime_list_apis.test.models.attributes.TestRelation.TestRelation(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Relation Attribute class

test_deserialization()

Tests deserializing an ID object :return: None

test_equality()

Tests that the equality of the objects is handled correctly :return: None

test_important_relations()

Tests if relations are correctly identified as “important” :return: None

test_invalid_constructor_parameters()

Tests using invalid parameter types with the constructor :return: None

test_invalid_deserialization()

Tests that invalid serialized data raises ValueErrors when deserialized :return: None

test_serialization()

Tests serializing a Relation object :return: None

test_string_representation()

Tests that the string representation is correct :return: None

test_using_same_ids()

Makes sure that using the same ID for both the source and the destination results in an error :return: None

anime_list_apis.test.models.attributes.TestScore module

class anime_list_apis.test.models.attributes.TestScore.TestScore(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Score Attribute class

test_deserialization()

Tests deserializing an ID object :return: None

test_equality()

Tests that the equality of the objects is handled correctly :return: None

test_initializing_different_score_types()

Tests initializing all types of scores with equivalent :return:

test_invalid_constructor_parameters()

Tests using invalid parameter types with the constructor :return: None

test_invalid_deserialization()

Tests that invalid serialized data raises ValueErrors when deserialized :return: None

test_invalid_score()

Tests using an invalid score :return: None

test_permanent_conversion()

Tests converting the internal score to another score type :return: None

test_score_calculation()

Tests calculating different score types- :return: None

test_serialization()

Tests serializing and deserializing an ID object :return: None

test_string_representation()

Tests that the string representation is correct :return: None

anime_list_apis.test.models.attributes.TestTitle module

class anime_list_apis.test.models.attributes.TestTitle.TestTitle(methodName='runTest')

Bases: unittest.case.TestCase

Tests the Title Attribute class

test_automatically_using_different_default_title_type()

Tests changing the default title type by not supplying the default title type. :return: None

test_changing_default_invalid_title_type()

Tests changing the default title type with an invalid title type :return: None

test_changing_default_title_type()

Tests changing the default title type :return: None

test_deserialization()

Tests deserializing an ID object :return: None

test_different_default_title_type()

Tests using a different title type :return: None

test_equality()

Tests that the equality of the objects is handled correctly :return: None

test_invalid_constructor_parameters()

Tests using invalid parameter types with the constructor :return: None

test_invalid_deserialization()

Tests that invalid serialized data raises ValueErrors when deserialized :return: None

test_missing_entries()

Tests that missing title entries are replaced with None. :return: None

test_no_entries()

Tests that at least on title is required during initialization :return: None

test_serialization()

Tests serializing an ID object :return: None

test_setting_titles()

Tests manually setting title values :return: None

test_setting_titles_with_invalid_types()

Tests that invalid types in title setting parameters raise a TypeError :return: None

test_title_construction()

Tests constructing the title :return: None

Module contents