Skip to content
Myr

Clarify which tests to run in the Makefile

Before adoption: this commit came in with the history the project adopted, so no landing records it.

If you put your Virtualenv in the same folder as Requests (as I usually do), py.test will pick up any test_* files inside the virtualenv and attempt to run them too, leading to the following error: https://gist.github.com/kevinburke/1aa2b07e01de3a7daa15 Instead specify the test file we would like to run in the Makefile.

authored by Kevin Burke · committed by Kevin Burke · parent c0322e4 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:Makefile+3 added-1 removed
2 unmodified lines
3init:4 pip install -r requirements.txt56test:7 py.test7 # This runs all of the tests. To run an individual test, run py.test with8 # the -k flag, like "py.test -k "9 py.test test_requests.py1011coverage:12 py.test --verbose --cov-report term --cov=requests test_requests.py13
32 unmodified lines