Skip to content

Commit 2074964

Browse files
committed
Run formatter
1 parent 04ddf64 commit 2074964

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

datadog_checks_base/tests/base/utils/http/test_authtoken.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,9 @@ def auth(*args, **kwargs):
612612
return MockResponse(status_code=404)
613613

614614
http = RequestsWrapper(instance, init_config)
615-
with mock.patch('requests.Session.post', side_effect=login), mock.patch('requests.Session.get', side_effect=auth):
615+
with mock.patch('requests.Session.post', side_effect=login), mock.patch(
616+
'requests.Session.get', side_effect=auth
617+
):
616618
http.get('https://leader.mesos/service/some-service')
617619

618620

twistlock/tests/test_twistlock.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def test_err_response(aggregator, instance):
111111
check = TwistlockCheck('twistlock', {}, [instance])
112112

113113
with pytest.raises(Exception, match='^Error in response'):
114-
with mock.patch('requests.Session.get', return_value=MockResponse('{"err": "invalid credentials"}'), autospec=True):
114+
with mock.patch(
115+
'requests.Session.get', return_value=MockResponse('{"err": "invalid credentials"}'), autospec=True
116+
):
115117

116118
check.check(instance)
117119

vllm/tests/test_unit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def test_emits_critical_openemtrics_service_check_when_service_is_down(
8181
"""
8282
mock_http_response(status_code=404)
8383
check = vLLMCheck("vllm", {}, [instance])
84-
with pytest.raises(Exception, match='requests.Session.exceptions.HTTPError"):
84+
with pytest.raises(Exception, match='requests.exceptions.HTTPError'):
8585
dd_run_check(check)
8686

8787
aggregator.assert_all_metrics_covered()

0 commit comments

Comments
 (0)