mirror of
https://github.com/shadoll/moma.git
synced 2026-08-28 11:33:25 +00:00
Add comprehensive tests for formatter classes, services, and utilities
- Introduced tests for various formatter classes including TextFormatter, DurationFormatter, SizeFormatter, DateFormatter, and more to ensure correct formatting behavior. - Added tests for service classes such as FileTreeService, MetadataService, and RenameService, covering directory validation, metadata extraction, and file renaming functionalities. - Implemented utility tests for LanguageCodeExtractor, PatternExtractor, and FrameClassMatcher to validate their extraction and matching capabilities. - Updated test cases to use datasets for better maintainability and clarity. - Enhanced error handling tests to ensure robustness against missing or invalid data.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
"""Movie database identifier constants.
|
||||
|
||||
This module defines movie and TV database services (TMDB, IMDB, Trakt, TVDB)
|
||||
and their identifier patterns.
|
||||
"""
|
||||
|
||||
MOVIE_DB_DICT = {
|
||||
"tmdb": {
|
||||
"name": "The Movie Database (TMDb)",
|
||||
"description": "Community built movie and TV database",
|
||||
"url": "https://www.themoviedb.org/",
|
||||
"patterns": ["tmdbid", "tmdb", "tmdbid-", "tmdb-"],
|
||||
},
|
||||
"imdb": {
|
||||
"name": "Internet Movie Database (IMDb)",
|
||||
"description": "Comprehensive movie, TV, and celebrity database",
|
||||
"url": "https://www.imdb.com/",
|
||||
"patterns": ["imdbid", "imdb", "imdbid-", "imdb-"],
|
||||
},
|
||||
"trakt": {
|
||||
"name": "Trakt.tv",
|
||||
"description": "Service that integrates with media centers for scrobbling",
|
||||
"url": "https://trakt.tv/",
|
||||
"patterns": ["traktid", "trakt", "traktid-", "trakt-"],
|
||||
},
|
||||
"tvdb": {
|
||||
"name": "The TV Database (TVDB)",
|
||||
"description": "Community driven TV database",
|
||||
"url": "https://thetvdb.com/",
|
||||
"patterns": ["tvdbid", "tvdb", "tvdbid-", "tvdb-"],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user