Added tests/__main__.py entry point to run all the tests
This commit is contained in:
parent
fb1953ce34
commit
c659ec507f
2 changed files with 10 additions and 0 deletions
|
@ -438,6 +438,11 @@ platyvdock rm device_id
|
||||||
## Tests
|
## Tests
|
||||||
|
|
||||||
To run the tests simply run `pytest` either from the project root folder or the `tests/` folder.
|
To run the tests simply run `pytest` either from the project root folder or the `tests/` folder.
|
||||||
|
Or run the following command from the project root folder:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
python -m tests
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
5
tests/__main__.py
Normal file
5
tests/__main__.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
# Run all the tests
|
||||||
|
pytest.main()
|
Loading…
Reference in a new issue