From 76b8afee9476b38af6af1249565eda5ba48b0774 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 13 Oct 2011 20:33:34 -0400 Subject: [PATCH 1/2] Make tests go to 11! --- test_requests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 From 565745f7b7b07d4fb210bd1f6ea9494cbaaa1626 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 13 Oct 2011 20:33:39 -0400 Subject: [PATCH 2/2] Make it so. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile 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