forked from home-assistant/core
Add test command to copilot
This commit is contained in:
1
.github/copilot-instructions.md
vendored
1
.github/copilot-instructions.md
vendored
@@ -94,6 +94,7 @@ automation application.
|
|||||||
- Provide descriptive state attributes
|
- Provide descriptive state attributes
|
||||||
- Testing:
|
- Testing:
|
||||||
- Test location: `tests/components/{domain}/`
|
- Test location: `tests/components/{domain}/`
|
||||||
|
- Run tests with `pytest --no-header --no-summary -x <location>`
|
||||||
- Use pytest fixtures from `tests.common`
|
- Use pytest fixtures from `tests.common`
|
||||||
- Mock external dependencies
|
- Mock external dependencies
|
||||||
- Use snapshots for complex data
|
- Use snapshots for complex data
|
||||||
|
Reference in New Issue
Block a user