diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..1686ea56 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +init: + pip install -r reqs.txt + +test: + nosetests test_requests.py --processes=30 + +ci: init + nosetests --search-test --processes=30 --with-nosexunit test_requests.py + pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt + +site: + cd docs; make dirhtml + +docs: site diff --git a/test_requests.py b/test_requests.py index 94c144f3..659bd5ae 100755 --- a/test_requests.py +++ b/test_requests.py @@ -16,7 +16,7 @@ import requests from requests.sessions import Session -HTTPBIN_URL = 'http://httpbin.org/' +HTTPBIN_URL = 'http://httpbin.ep.io/' HTTPSBIN_URL = 'https://httpbin.ep.io/' # HTTPBIN_URL = 'http://staging.httpbin.org/' @@ -42,6 +42,8 @@ SERVICES = (httpbin, httpsbin) class RequestsTestSuite(unittest.TestCase): """Requests test cases.""" + # It goes to eleven. + _multiprocess_can_split_ = True def setUp(self): pass