Skip to content
Myr

Removed unnecessary leading slashes in httpbin's endpoints

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

authored by Piotr Dobrogost · committed by Piotr Dobrogost · parent 751e2ea · Browse files · 1 file+4 added−5 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+4 added−5 removed

  • tests:+4 added−5 removed

1 file+4 added−5 removed

modified:tests/test_requests.py+4 added-5 removed
27 unmodified lines
282930def httpbin(*suffix):31 """Returns url for HTTPBIN resource."""3232 return HTTPBIN_URL + '/'.join(suffix)333435SERVICES = (httpbin, )
39 unmodified lines
7576 self.assertEqual(request.path_url, "/get/test%20case")7778 def test_HTTP_200_OK_GET(self):80 r = get(httpbin('/get'))79 r = get(httpbin('get'))80 self.assertEqual(r.status_code, 200)8182 def test_response_sent(self):84 r = get(httpbin('/get'))83 r = get(httpbin('get'))8485 self.assertTrue(r.request.sent)8687 def test_HTTP_302_ALLOW_REDIRECT_GET(self):
114 unmodified lines
202 r = get(httpbin('user-agent'), headers=heads)203 self.assertTrue(heads['user-agent'] in r.text)204205 def test_HTTP_200_OK_HEAD(self):207 r = head(httpbin('/get'))206 r = head(httpbin('get'))207 self.assertEqual(r.status_code, 200)208209 def test_HTTP_200_OK_PUT(self):210 r = put(httpbin('put'))
320 unmodified lines
531532 def test_session_HTTP_200_OK_GET(self):533534 s = requests.session()536 r = get(httpbin('/get'), session=s)535 r = get(httpbin('get'), session=s)536 self.assertEqual(r.status_code, 200)537538 def test_session_persistent_headers(self):539
265 unmodified lines