# Ran 0 tests in 0.000s

NO TESTS RAN

- **ID:** `python/unittest-test-discovery-failure`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

unittest did not discover any tests, often because the test files are not named test_*.py or the test classes do not inherit from unittest.TestCase.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Rename files to test_*.py and make test classes subclass unittest.TestCase. Use python -m unittest discover -s tests -p 'test_*.py'
   ```
2. **** (90% success)
   ```
   python -m unittest tests.test_module
   ```

## Dead Ends

- **** — unittest discovery relies on the test_*.py pattern; renaming may break discovery further. (95% fail)
- **** — This may run tests if the file has a if __name__ == '__main__' block, but does not fix discovery for all tests. (80% fail)
