Added tests/__main__.py entry point to run all the tests

This commit is contained in:
Fabio Manganiello 2021-03-06 20:13:38 +01:00
parent fb1953ce34
commit c659ec507f
2 changed files with 10 additions and 0 deletions

View file

@ -438,6 +438,11 @@ platyvdock rm device_id
## Tests
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
View file

@ -0,0 +1,5 @@
import pytest
if __name__ == '__main__':
# Run all the tests
pytest.main()