cleanup tests (make them faster)
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Kenneth Reitz · committed by Kenneth Reitz · parent 03e5f5d · Browse files · 4 files·+45 added−141 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+45 added−141 removed
- other:+45 added−141 removed
Provenance
- Commit
1d76cb3- Tree
aa4fba4- Author
Kenneth Reitz <me@kennethreitz.org>- Committer
Kenneth Reitz <me@kennethreitz.org>- Parent
03e5f5d
4 files changed+45 added−141 removed
modified:Makefile+4 added-10 removed
1 .PHONY: docs2 3 init:4- pip install pipenv5- pipenv install --dev6- pipenv run pip install -e .[socks]7-4+ pip install -r requirements.txt5 test:6 # This runs all of the tests. To run an individual test, run py.test with7 # the -k flag, like "py.test -k test_path_is_not_double_encoded"11- pipenv run py.test tests8+ py.test tests9 10 test-readme:14- pipenv run python setup.py check -r -s11+ python setup.py check -r -s12 13 coverage:17- pipenv run py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests14+ py.test --cov-config .coveragerc --verbose --cov-report term --cov-report xml --cov=requests tests15 19-certs:20- curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem21-16 publish:17 pip install 'twine>=1.5.0'18 python setup.py sdist bdist_wheel19 twine upload dist/*5 unmodified linesdeleted:Pipfile-14 removed
1-[[source]]2-url = "https://pypi.python.org/simple"3-verify_ssl = true4-5-[dev-packages]6-pytest = ">=2.8.0"7-codecov = "*"8-pytest-httpbin = "==0.0.7"9-pytest-mock = "*"10-pytest-cov = "*"11-alabaster = "*"12-readme_renderer = "*"13-Sphinx = "<=1.5.5"14-PySocks = "*"deleted:Pipfile.lock-116 removed
1-{2- "_meta": {3- "hash": {4- "sha256": "a26ef57f42fa3da7d70d1c1decb4e6445a6ff66e47c9094ddc9ab8e1f4c0a5b6"5- },6- "requires": {},7- "sources": [8- {9- "url": "https://pypi.python.org/simple",10- "verify_ssl": true11- }12- ]13- },14- "default": {},15- "develop": {16- "alabaster": {17- "version": "==0.7.10"18- },19- "appdirs": {20- "version": "==1.4.3"21- },22- "babel": {23- "version": "==2.4.0"24- },25- "click": {26- "version": "==6.7"27- },28- "codecov": {29- "version": "==2.0.9"30- },31- "coverage": {32- "version": "==4.4.1"33- },34- "decorator": {35- "version": "==4.0.11"36- },37- "docutils": {38- "version": "==0.13.1"39- },40- "flask": {41- "version": "==0.12.2"42- },43- "funcsigs": {44- "version": "==1.0.2"45- },46- "httpbin": {47- "version": "==0.5.0"48- },49- "imagesize": {50- "version": "==0.7.1"51- },52- "itsdangerous": {53- "version": "==0.24"54- },55- "jinja2": {56- "version": "==2.9.6"57- },58- "markupsafe": {59- "version": "==1.0"60- },61- "mock": {62- "version": "==2.0.0"63- },64- "packaging": {65- "version": "==16.8"66- },67- "pbr": {68- "version": "==3.0.0"69- },70- "py": {71- "version": "==1.4.33"72- },73- "pygments": {74- "version": "==2.2.0"75- },76- "pyparsing": {77- "version": "==2.2.0"78- },79- "pysocks": {80- "version": "==1.6.7"81- },82- "pytest": {83- "version": "==3.0.7"84- },85- "pytest-cov": {86- "version": "==2.5.1"87- },88- "pytest-httpbin": {89- "version": "==0.0.7"90- },91- "pytest-mock": {92- "version": "==1.6.0"93- },94- "pytz": {95- "version": "==2017.2"96- },97- "requests": {98- "version": "==2.14.2"99- },100- "setuptools": {101- "version": "==35.0.2"102- },103- "six": {104- "version": "==1.10.0"105- },106- "snowballstemmer": {107- "version": "==1.2.1"108- },109- "sphinx": {110- "version": "==1.5.5"111- },112- "werkzeug": {113- "version": "==0.12.2"114- }115- }116-}modified:requirements.txt+41 added-1 removed
1--e .1+-e .[socks]2+alabaster==0.7.103+appdirs==1.4.34+Babel==2.4.05+bleach==2.0.06+certifi==2017.4.177+chardet==3.0.38+click==6.79+codecov==2.0.910+coverage==4.4.111+decorator==4.0.1112+docutils==0.13.113+Flask==0.12.214+funcsigs==1.0.215+html5lib==0.99999999916+httpbin==0.5.017+idna==2.518+imagesize==0.7.119+itsdangerous==0.2420+Jinja2==2.9.621+MarkupSafe==1.022+mock==2.0.023+packaging==16.824+pbr==3.0.125+py==1.4.3326+Pygments==2.2.027+pyparsing==2.2.028+PySocks==1.6.729+pytest==3.1.030+pytest-cov==2.5.131+pytest-httpbin==0.0.732+pytest-mock==1.6.033+pytz==2017.234+readme-renderer==17.235+requests==2.16.436+six==1.10.037+snowballstemmer==1.2.138+Sphinx==1.5.539+urllib3==1.21.140+webencodings==0.5.141+Werkzeug==0.12.2