Skip to content

Commit 3e67f57

Browse files
committed
Ruff format
1 parent fa38827 commit 3e67f57

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

newrelic/common/utilization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def fetch(cls):
194194
)
195195
if not 200 <= resp[0] < 300:
196196
raise ValueError(resp[0])
197-
# Cache this for forced agent restarts within the same
197+
# Cache this for forced agent restarts within the same
198198
# environment if return value is valid.
199199
try:
200200
response_dict = json.loads(resp[1].decode("utf-8"))

tests/agent_unittests/test_aws_utilization_caching.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@
2828

2929
_parameters = ",".join(_parameters_list)
3030

31+
3132
@classmethod
3233
def fake_token(cls):
3334
return "FakeToken"
3435

36+
3537
@classmethod
3638
def no_token(cls):
3739
return None
3840

41+
3942
def _load_tests():
4043
with open(FIXTURE) as fh:
4144
js = fh.read()
@@ -45,6 +48,7 @@ def _load_tests():
4548
def _parametrize_test(test):
4649
return tuple([test.get(f, None) for f in _parameters_list])
4750

51+
4852
# Load the tests from the JSON fixture
4953
_aws_tests = [_parametrize_test(t) for t in _load_tests()]
5054

@@ -59,7 +63,6 @@ def _parametrize_test(test):
5963

6064
@pytest.mark.parametrize(_parameters, _aws_tests)
6165
def test_aws_utilization_caching(monkeypatch, testname, auth_token_cls, uri, expected_vendors_hash, expected_metrics):
62-
6366
def _get_mock_return_value(api_result):
6467
if api_result["timeout"]:
6568
return 0, None

tests/cross_agent/test_utilization_configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import newrelic.core.config
2828
from newrelic.common.object_wrapper import function_wrapper
2929
from newrelic.common.system_info import BootIdUtilization
30-
from newrelic.common.utilization import CommonUtilization, AWSUtilization
30+
from newrelic.common.utilization import AWSUtilization, CommonUtilization
3131
from newrelic.core.agent_protocol import AgentProtocol
3232

3333
INITIAL_ENV = os.environ

0 commit comments

Comments
 (0)