- Implemented comprehensive test suite for NFO service - 73 unit tests covering: - FSK rating extraction from German content ratings - Year extraction from series names with parentheses - TMDB to NFO model conversion - NFO file creation with TMDB integration - NFO file updates with media refresh - Media file downloads (poster, logo, fanart) - NFO ID parsing (TMDB, TVDB, IMDb) - Edge cases for empty data, malformed XML, missing fields - Configuration options (image sizes, auto-create) - File cleanup and close operations Coverage: 90.65% (target: 80%+) - Statements covered: 202/222 - Branches covered: 79/88 Test results: All 73 tests passing - Mocked TMDB API client and image downloader - Used AsyncMock for async operations - Tested both success and error paths - Verified concurrent operations work correctly - Validated XML parsing and ID extraction
Aniworld Documentation
Overview
This directory contains all documentation for the Aniworld anime download manager project.
Documentation Structure
| Document | Purpose | Target Audience |
|---|---|---|
| ARCHITECTURE.md | System architecture and design decisions | Architects, Senior Developers |
| API.md | REST API reference and WebSocket documentation | Frontend Developers, API Consumers |
| DEVELOPMENT.md | Developer setup and contribution guide | All Developers |
| DEPLOYMENT.md | Deployment and operations guide | DevOps, System Administrators |
| DATABASE.md | Database schema and data models | Backend Developers |
| TESTING.md | Testing strategy and guidelines | QA Engineers, Developers |
| SECURITY.md | Security considerations and guidelines | Security Engineers, All Developers |
| CONFIGURATION.md | Configuration options reference | Operators, Developers |
| CHANGELOG.md | Version history and changes | All Stakeholders |
| TROUBLESHOOTING.md | Common issues and solutions | Support, Operators |
| features.md | Feature list and capabilities | Product Owners, Users |
| instructions.md | AI agent development instructions | AI Agents, Developers |
Documentation Standards
- All documentation uses Markdown format
- Keep documentation up-to-date with code changes
- Include code examples where applicable
- Use clear, concise language
- Include diagrams for complex concepts (use Mermaid syntax)
Contributing to Documentation
When adding or updating documentation:
- Follow the established format in each document
- Update the README.md if adding new documents
- Ensure cross-references are valid
- Review for spelling and grammar