Skip to content

Commit 630b373

Browse files
Nick SchoutenNick Schouten
Nick Schouten
authored and
Nick Schouten
committed
blacked my tests
1 parent 20d7586 commit 630b373

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

papermill/tests/test_iorw.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,7 @@ def test_read_with_auth(self):
329329
text = 'request test response'
330330
auth = 'Basic dW5hbWU6cGFzc3dvcmQK'
331331

332-
with patch.dict(os.environ, clear=True) as env,\
333-
patch('papermill.iorw.requests.get') as mock_get:
332+
with patch.dict(os.environ, clear=True) as env, patch('papermill.iorw.requests.get') as mock_get:
334333
env['PAPERMILL_HTTP_AUTH_HEADER'] = auth
335334
mock_get.return_value = Mock(text=text)
336335

@@ -346,8 +345,7 @@ def test_read_with_accept_header(self):
346345
text = 'request test response'
347346
accept_type = 'test accept type'
348347

349-
with patch.dict(os.environ, clear=True) as env,\
350-
patch('papermill.iorw.requests.get') as mock_get:
348+
with patch.dict(os.environ, clear=True) as env, patch('papermill.iorw.requests.get') as mock_get:
351349
env['PAPERMILL_HTTP_ACCEPT_HEADER'] = accept_type
352350
mock_get.return_value = Mock(text=text)
353351

@@ -375,8 +373,7 @@ def test_write_with_auth(self):
375373
buf = '{"papermill": true}'
376374
auth = 'token'
377375

378-
with patch.dict(os.environ, clear=True) as env,\
379-
patch('papermill.iorw.requests.put') as mock_put:
376+
with patch.dict(os.environ, clear=True) as env, patch('papermill.iorw.requests.put') as mock_put:
380377
env['PAPERMILL_HTTP_AUTH_HEADER'] = auth
381378

382379
HttpHandler.write(buf, path)

0 commit comments

Comments
 (0)