Skip to content

Commit be98421

Browse files
ben-beauhurstclaudep
authored andcommitted
Linting.
1 parent 8871916 commit be98421

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

linkcheck/tests/test_linkcheck.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,10 @@ def test_external_check_blocked_user_agent_blocked_head(self):
673673
self.assertEqual(uv.redirect_to, '')
674674
self.assertEqual(uv.type, 'external')
675675

676-
@patch('linkcheck.models.PROXIES', {'http': 'http://proxy.example.com:8080'})
676+
@patch(
677+
'linkcheck.models.PROXIES',
678+
{'http': 'http://proxy.example.com:8080'},
679+
)
677680
@patch('requests.head')
678681
def test_external_proxy_request(self, mock_head):
679682
mock_response = Mock()
@@ -690,7 +693,10 @@ def test_external_proxy_request(self, mock_head):
690693
mock_head.assert_called_once()
691694
(call_url,), call_kwargs = mock_head.call_args
692695
self.assertEqual(call_url, request_url)
693-
self.assertEqual(call_kwargs.get('proxies'), {'http': 'http://proxy.example.com:8080'})
696+
self.assertEqual(
697+
call_kwargs.get('proxies'),
698+
{'http': 'http://proxy.example.com:8080'},
699+
)
694700

695701
def test_external_check_timedout(self):
696702
uv = Url(url=f"{self.live_server_url}/timeout/")

0 commit comments

Comments
 (0)