seriesmarker.test.database.database_factory_test module¶
-
class
DatabaseFactoryTest
(methodName='runTest')[source]¶ Bases:
seriesmarker.test.database.base.memory_db_test_case.MemoryDBTestCase
-
test_add_episode
()¶
-
test_add_role
()¶
-
test_add_season
()¶
-
test_create_but_no_add_series
()¶
-
test_create_episode_extra
()¶
-
test_defaulting_incomplete_series
()¶ Adresses conversion bug
Adresses a Bug from converting a missing attribute (empty string as Rating) to a real (float) database-value.
-
test_handle_multiple_identical_attributes
()¶ Adresses bug, caused by improper data from thetvdb, where one guest star was listed twice
As a precaution, attributes where this may also happen have been protected, too.
-
test_multiple_role_of_actor
()¶ Tests the
RoleFactory
for handling of roles where an actor has multiple roles.It is assumed that an actor usually plays a single role only. Therefore, in cases where multiple roles exist within an Role-object anyhow, they are joined to a single string in the database.
Note
This database schema differs from the approach of having a separate object for each information to be stored. As long as lists of strings need to be modeled via relations (sqlalchemy restriction), creating objects for role names is considered to be overkill.
-
test_resorting_update
()¶
-