Commit Graph

1 Commits

Author SHA1 Message Date
Claude
67f00b6f47
test: add comprehensive pytest test suite
Implements a production-grade testing infrastructure with 100+ tests
covering all core modules and pipelines.

Test Coverage:
- Unit tests for WanModel (DiT architecture)
- Unit tests for WanVAE (3D Causal VAE)
- Unit tests for attention mechanisms
- Integration tests for pipelines (T2V, I2V, FLF2V, VACE)
- Utility function tests

Test Infrastructure:
- conftest.py with reusable fixtures for configs, devices, and dtypes
- pytest.ini with markers for different test categories
- Test markers: slow, cuda, integration, unit, requires_model
- Support for both CPU and GPU testing
- Parameterized tests for various configurations

Files Added:
- tests/conftest.py - Pytest fixtures and configuration
- tests/test_attention.py - Attention mechanism tests
- tests/test_model.py - WanModel tests
- tests/test_vae.py - VAE tests
- tests/test_utils.py - Utility function tests
- tests/test_pipelines.py - Pipeline integration tests
- pytest.ini - Pytest configuration

Test Execution:
- pytest tests/ -v              # Run all tests
- pytest tests/ -m "not cuda"   # CPU only
- pytest tests/ -m "integration" # Integration tests only
2025-11-19 04:24:33 +00:00