There should be a classification attribute that is set to None.
This was discovered during unit tests against the Movie class that did not have <classification> elements in the test data structures. Without the data structures, the attribute was never created, and it caused a problem when the MovieIndexEntry object was instantiated.
The work in #183 changes how indexes are set up. Indexes for content are now dedicated attributes that are created at class initialization time, instead of being generated through the Movie class build_index_object() function.
This is both kind of a minor bug, but also something that should be documented.
A bug was discovered through unit tests in the
AbstractContent
class.https://github.com/cjcodeproj/medialibrary/blob/f37e074d29e6ecdb38942ca38e92663f5176b7df/src/media/data/media/contents/internal.py#L38-L48
There should be a
classification
attribute that is set to None.This was discovered during unit tests against the
Movie
class that did not have<classification>
elements in the test data structures. Without the data structures, the attribute was never created, and it caused a problem when theMovieIndexEntry
object was instantiated.The work in #183 changes how indexes are set up. Indexes for content are now dedicated attributes that are created at class initialization time, instead of being generated through the
Movie
classbuild_index_object()
function.This is both kind of a minor bug, but also something that should be documented.