Skip to content

Commit 968c63c

Browse files
committed
updated unit test
1 parent 41adf7a commit 968c63c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/unit_tests/instance_types/test_instance_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
STORAGE_SIZE = 1800
1616
INSTANCE_TYPE_DESCRIPTION = "Dedicated Bare metal Server"
1717
PRICE_PER_HOUR = 5.0
18+
SPOT_PRICE_PER_HOUR = 2.5
1819
INSTANCE_TYPE = "8V100.48M"
1920

2021

@@ -48,6 +49,7 @@ def test_instance_types(http_client):
4849
},
4950
"description": INSTANCE_TYPE_DESCRIPTION,
5051
"price_per_hour": "5.00",
52+
"spot_price": "2.50",
5153
"instance_type": INSTANCE_TYPE
5254
}
5355
],
@@ -67,6 +69,7 @@ def test_instance_types(http_client):
6769
assert instance_type.id == TYPE_ID
6870
assert instance_type.description == INSTANCE_TYPE_DESCRIPTION
6971
assert instance_type.price_per_hour == PRICE_PER_HOUR
72+
assert instance_type.spot_price_per_hour == SPOT_PRICE_PER_HOUR
7073
assert instance_type.instance_type == INSTANCE_TYPE
7174
assert type(instance_type.cpu) == dict
7275
assert type(instance_type.gpu) == dict

0 commit comments

Comments
 (0)