Skip to content

Commit 97aa2e2

Browse files
authored
Merge pull request #13 from martingasser/martin/fix-price-per-hour
change pricePerHour to price_per_hour
2 parents 80e0c14 + 0212978 commit 97aa2e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datacrunch/instance_types/instance_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get(self) -> List[InstanceType]:
161161
instance_type_objects = list(map(lambda instance_type: InstanceType(
162162
id=instance_type['id'],
163163
instance_type=instance_type['instance_type'],
164-
price_per_hour=instance_type['pricePerHour'],
164+
price_per_hour=instance_type['price_per_hour'],
165165
description=instance_type['description'],
166166
cpu=instance_type['cpu'],
167167
gpu=instance_type['gpu'],

tests/unit_tests/instance_types/test_instance_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def test_instance_types(http_client):
4747
"size_in_gigabytes": STORAGE_SIZE
4848
},
4949
"description": INSTANCE_TYPE_DESCRIPTION,
50-
"pricePerHour": "5.00",
50+
"price_per_hour": "5.00",
5151
"instance_type": INSTANCE_TYPE
5252
}
5353
],

0 commit comments

Comments
 (0)