mirror of
https://github.com/home-assistant/core.git
synced 2025-07-30 00:27:19 +00:00
Add test command to copilot
This commit is contained in:
parent
a102eaf0cd
commit
b8cd4193a9
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user