Testing djdevx
This skill helps you write and run tests for djdevx.
When to use this skill
Use this skill when you need to:
- Write tests for new features or packages
- Run tests to validate changes
- Fix failing tests
Writing tests
- Review the tests directory to understand the structure of tests and how they are organized by module.
- Refer to existing tests in the relevant directory (e.g., tests/backend/django/packages) to understand the testing patterns used.
- Create your test file following the naming convention
test_*.py. - Use pytest fixtures and assertions to write clear, maintainable tests.
- Ensure tests validate both positive and negative cases.
Running tests
To run all tests locally:
uv run pytest -v
To run specific tests:
uv run pytest -v tests/path/to/test_file.py
To run tests with coverage:
uv run pytest --cov=djdevx tests/
Converted and distributed by TomeVault — claim your Tome and manage your conversions.