mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-20 07:46:32 +00:00
Add instructions for pytest asyncio-mode (#1392)
This commit is contained in:
parent
c50aed54be
commit
558b3a82d6
@ -77,7 +77,7 @@ script/lint
|
|||||||
In case you want to check the code coverage for your new component, run the following from the root of the repository:
|
In case you want to check the code coverage for your new component, run the following from the root of the repository:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
pytest ./tests/components/<your_component>/ --cov=homeassistant.components.<your_component> --cov-report term-missing -vv
|
pytest ./tests/components/<your_component>/ --asyncio-mode=strict --cov=homeassistant.components.<your_component> --cov-report term-missing -vv
|
||||||
```
|
```
|
||||||
|
|
||||||
### Preventing linter errors
|
### Preventing linter errors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user