Skip to content

Commit 9272fc1

Browse files
committed
ruff
1 parent c7056b3 commit 9272fc1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

services/autoscaling/tests/unit/test_utils_buffer_machines.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# pylint:disable=unused-argument
33
# pylint:disable=redefined-outer-name
44
import pytest
5-
from aws_library.ec2 import AWSTagKey, AWSTagValue, EC2Tags
5+
from aws_library.ec2 import AWSTagValue, EC2Tags
66
from faker import Faker
77
from fastapi import FastAPI
88
from models_library.docker import DockerGenericTag
@@ -65,8 +65,8 @@ def test_get_deactivated_buffer_ec2_tags_dynamic(
6565
| DEACTIVATED_BUFFER_MACHINE_EC2_TAGS
6666
)
6767
assert "Name" in expected_tags
68-
expected_tags[AWSTagKey("Name")] = TypeAdapter(AWSTagValue).validate_python(
69-
str(expected_tags[AWSTagKey("Name")]) + "-buffer"
68+
expected_tags["Name"] = TypeAdapter(AWSTagValue).validate_python(
69+
str(expected_tags["Name"]) + "-buffer"
7070
)
7171
assert expected_tags == deactivated_buffer_tags
7272

@@ -107,8 +107,8 @@ def test_get_deactivated_buffer_ec2_tags_computational(
107107
| DEACTIVATED_BUFFER_MACHINE_EC2_TAGS
108108
)
109109
assert "Name" in expected_tags
110-
expected_tags[AWSTagKey("Name")] = TypeAdapter(AWSTagValue).validate_python(
111-
str(expected_tags[AWSTagKey("Name")]) + "-buffer"
110+
expected_tags["Name"] = TypeAdapter(AWSTagValue).validate_python(
111+
str(expected_tags["Name"]) + "-buffer"
112112
)
113113
assert expected_tags == deactivated_buffer_tags
114114

0 commit comments

Comments
 (0)