Skip to content
Myr

Use urlparse.urljointo construct httpbin url

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

authored by Ian Cordasco · committed by Ian Cordasco · parent f71bff1 · Browse files · 1 file+2 added−1 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:test_requests.py+2 added-1 removed
6 unmodified lines
7import json8import os9import unittest10import pickle11import urlparse1213import requests14from requests.auth import HTTPDigestAuth15from requests.adapters import HTTPAdapter
13 unmodified lines
293031def httpbin(*suffix):32 """Returns url for HTTPBIN resource."""32 return HTTPBIN + '/'.join(suffix)33 return urlparse.urljoin(HTTPBIN, '/'.join(suffix))343536class RequestsTestCase(unittest.TestCase):37
753 unmodified lines