Add instructions for pytest asyncio-mode (#1392)

This commit is contained in:
Robert Hillis 2022-07-10 17:06:57 -04:00 committed by GitHub
parent c50aed54be
commit 558b3a82d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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:
```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