Files
harry0703 b1588e1fdc feat: modernize WebUI and generation workflows
- redesign the WebUI layout, settings, onboarding, and responsive styles
- add task history, filtering, replay, deletion, and cache management
- centralize LLM provider metadata, defaults, tips, and connection testing
- migrate Gemini integrations from google-generativeai to google-genai
- improve audio, subtitle, video codec, and generation state handling
- expand CLI options and add the MoneyPrinterTurbo agent skill
- refine multilingual UI copy and remove unsupported provider options
- update Docker startup, configuration examples, screenshots, and docs
- add regression coverage for WebUI, providers, tasks, CLI, and caching
- bump the project version to v1.3.2
2026-07-12 16:27:04 +08:00
..
2025-05-10 12:34:37 +08:00
2025-05-10 12:34:37 +08:00

MoneyPrinterTurbo Test Directory

This directory contains unit tests for the MoneyPrinterTurbo project.

Directory Structure

  • services/: Tests for components in the app/services directory
    • test_video.py: Tests for the video service
    • test_task.py: Tests for the task service
    • test_voice.py: Tests for the voice service

Running Tests

You can run the tests using Python’s built-in unittest framework:

# Run all tests
python -m unittest discover -s test

# Run a specific test file
python -m unittest test/services/test_video.py

# Run a specific test class
python -m unittest test.services.test_video.TestVideoService

# Run a specific test method
python -m unittest test.services.test_video.TestVideoService.test_preprocess_video

Live provider tests are skipped by default. To run tests that may call external TTS or LLM services, set MPT_RUN_INTEGRATION_TESTS=1 and provide the required provider credentials.

Adding New Tests

To add tests for other components, follow these guidelines:

  1. Create test files prefixed with test_ in the appropriate subdirectory
  2. Use unittest.TestCase as the base class for your test classes
  3. Name test methods with the test_ prefix

Test Resources

Place any resource files required for testing in the test/resources directory.