Skip to content
Myr

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

4 files+45 added−141 removed

modified:Makefile+4 added-10 removed
1.PHONY: docs23init:4 pip install pipenv5 pipenv install --dev6 pipenv run pip install -e .[socks]74 pip install -r requirements.txt5test: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 tests910test-readme:14 pipenv run python setup.py check -r -s11 python setup.py check -r -s1213coverage: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 tests1519certs:20 curl http://ci.kennethreitz.org/job/ca-bundle/lastSuccessfulBuild/artifact/cacerts.pem -o requests/cacert.pem2116publish:17 pip install 'twine>=1.5.0'18 python setup.py sdist bdist_wheel19 twine upload dist/*
5 unmodified lines
deleted:Pipfile-14 removed
1[[source]]2url = "https://pypi.python.org/simple"3verify_ssl = true45[dev-packages]6pytest = ">=2.8.0"7codecov = "*"8pytest-httpbin = "==0.0.7"9pytest-mock = "*"10pytest-cov = "*"11alabaster = "*"12readme_renderer = "*"13Sphinx = "<=1.5.5"14PySocks = "*"
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]2alabaster==0.7.103appdirs==1.4.34Babel==2.4.05bleach==2.0.06certifi==2017.4.177chardet==3.0.38click==6.79codecov==2.0.910coverage==4.4.111decorator==4.0.1112docutils==0.13.113Flask==0.12.214funcsigs==1.0.215html5lib==0.99999999916httpbin==0.5.017idna==2.518imagesize==0.7.119itsdangerous==0.2420Jinja2==2.9.621MarkupSafe==1.022mock==2.0.023packaging==16.824pbr==3.0.125py==1.4.3326Pygments==2.2.027pyparsing==2.2.028PySocks==1.6.729pytest==3.1.030pytest-cov==2.5.131pytest-httpbin==0.0.732pytest-mock==1.6.033pytz==2017.234readme-renderer==17.235requests==2.16.436six==1.10.037snowballstemmer==1.2.138Sphinx==1.5.539urllib3==1.21.140webencodings==0.5.141Werkzeug==0.12.2