diff options
| author | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-11-04 23:34:43 +0100 |
|---|---|---|
| committer | Gabriel Falcão <gabriel@nacaolivre.org> | 2018-11-04 23:34:43 +0100 |
| commit | 067c4bda72a442e1771374f9d69a5a1c77c88de5 (patch) | |
| tree | 907b5303ea0c77fbc64daa67e79920577c8edc2f /tests/pyopenssl | |
| parent | 2314893ec5ab46513e91ab867d7b55a72968909e (diff) | |
| download | httpretty-black.tar.gz | |
prettify code with blackblack
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("/") |
