Skip to content

Commit f71b67d

Browse files
author
Ruslan Gainutdinov
committed
fix: copilot review fixes
1 parent 726cc85 commit f71b67d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit_tests/instances/test_instances.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ def test_create_spot_instance_successful(self, instances_service, endpoint):
268268
assert responses.assert_call_count(endpoint, 1) is True
269269
assert responses.assert_call_count(url, 1) is True
270270

271-
def test_create_spot_instance(self, instances_service, endpoint):
271+
def test_create_spot_instance_with_spot_volume_policy(self, instances_service, endpoint):
272272
# arrange
273273
responses.add(responses.POST, endpoint, body=INSTANCE_ID, status=200)
274274
url = endpoint + '/' + INSTANCE_ID
275275
responses.add(responses.GET, url, json=PAYLOAD[0], status=200)
276276

277-
SPOT_INSTANCE_OS_VOLUME = OSVolume(
277+
os_volume = OSVolume(
278278
name='spot-instance-os-volume', size=50, on_spot_discontinue='delete_permanently'
279279
)
280280

@@ -285,7 +285,7 @@ def test_create_spot_instance(self, instances_service, endpoint):
285285
ssh_key_ids=[SSH_KEY_ID],
286286
hostname=INSTANCE_HOSTNAME,
287287
description=INSTANCE_DESCRIPTION,
288-
os_volume=SPOT_INSTANCE_OS_VOLUME,
288+
os_volume=os_volume,
289289
)
290290

291291
# assert

0 commit comments

Comments
 (0)