diff options
Diffstat (limited to 'tests/pyopenssl')
| -rw-r--r-- | tests/pyopenssl/__init__.py | 3 | ||||
| -rw-r--r-- | tests/pyopenssl/test_mock.py | 15 |
2 files changed, 10 insertions, 8 deletions
diff --git a/tests/pyopenssl/__init__.py b/tests/pyopenssl/__init__.py index 4eaed8c..ad1391a 100644 --- a/tests/pyopenssl/__init__.py +++ b/tests/pyopenssl/__init__.py @@ -25,4 +25,5 @@ # OTHER DEALINGS IN THE SOFTWARE. import warnings -warnings.simplefilter('ignore') + +warnings.simplefilter("ignore") diff --git a/tests/pyopenssl/test_mock.py b/tests/pyopenssl/test_mock.py index 89320f2..54572fa 100644 --- a/tests/pyopenssl/test_mock.py +++ b/tests/pyopenssl/test_mock.py @@ -34,12 +34,13 @@ from sure import expect @httprettified def test_httpretty_overrides_when_pyopenssl_installed(): - ('HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed') + ("HTTPretty should remove PyOpenSSLs urllib3 mock if it is installed") # And HTTPretty works successfully - HTTPretty.register_uri(HTTPretty.GET, "https://yipit.com/", - body="Find the best daily deals") + HTTPretty.register_uri( + HTTPretty.GET, "https://yipit.com/", body="Find the best daily deals" + ) - response = requests.get('https://yipit.com') - expect(response.text).to.equal('Find the best daily deals') - expect(HTTPretty.last_request.method).to.equal('GET') - expect(HTTPretty.last_request.path).to.equal('/') + response = requests.get("https://yipit.com") + expect(response.text).to.equal("Find the best daily deals") + expect(HTTPretty.last_request.method).to.equal("GET") + expect(HTTPretty.last_request.path).to.equal("/") |
