Documentation Index
Fetch the complete documentation index at: https://docs.mirobody.ai/llms.txt
Use this file to discover all available pages before exploring further.
Testing Philosophy
We believe in comprehensive testing to ensure reliability and maintainability. Our test suite includes:- Unit Tests: Test individual components in isolation
- Integration Tests: Test component interactions
- End-to-End Tests: Test complete workflows
Running Tests
Test Structure
Writing Tests
Unit Test Example
Integration Test Example
Best Practices
Test Naming
Test Naming
- Use descriptive names:
test_oauth_link_generates_valid_url - Start with
test_ - Group related tests in classes
Fixtures
Fixtures
- Use fixtures for common setup
- Keep fixtures simple
- Use
autouse=Truesparingly
Mocking
Mocking
- Mock external services
- Don’t mock what you’re testing
- Use
aioresponsesfor HTTP calls
Assertions
Assertions
- Use specific assertions
- Test one thing per test
- Add helpful failure messages
Continuous Integration
Tests run automatically on every push via GitHub Actions. See.github/workflows/test.yml for configuration.