From 79fa0c6f9d57375fcb412b9d75f5aefb51ad275c Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 28 Oct 2017 10:01:47 +0300 Subject: [PATCH] pytest is recommended entry point --- README.md | 6 +++--- tox.ini | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 697ae2f..53b5d12 100644 --- a/README.md +++ b/README.md @@ -93,17 +93,17 @@ export PYLAST_API_SECRET=TODO_ENTER_YOURS_HERE To run all unit and integration tests: ```sh pip install pytest flaky mock -py.test +pytest ``` Or run just one test case: ```sh -py.test -k test_scrobble +pytest -k test_scrobble ``` To run with coverage: ```sh -py.test -v --cov pylast --cov-report term-missing +pytest -v --cov pylast --cov-report term-missing coverage report # for command-line report coverage html # for HTML report open htmlcov/index.html diff --git a/tox.ini b/tox.ini index 8300509..6347575 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ deps = ipdb pytest-cov flaky -commands = py.test -v -s -W all --cov pylast --cov-report term-missing {posargs} +commands = pytest -v -s -W all --cov pylast --cov-report term-missing {posargs} [testenv:venv] deps = ipdb