From 3042dc89a776c6c4dad2dd2179dbc8ea5ea483f5 Mon Sep 17 00:00:00 2001 From: martingasser Date: Tue, 28 Feb 2023 22:43:41 +0100 Subject: [PATCH 1/2] change pricePerHour to price_per_hour --- datacrunch/instance_types/instance_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datacrunch/instance_types/instance_types.py b/datacrunch/instance_types/instance_types.py index 2fe23c3..dc43575 100644 --- a/datacrunch/instance_types/instance_types.py +++ b/datacrunch/instance_types/instance_types.py @@ -161,7 +161,7 @@ def get(self) -> List[InstanceType]: instance_type_objects = list(map(lambda instance_type: InstanceType( id=instance_type['id'], instance_type=instance_type['instance_type'], - price_per_hour=instance_type['pricePerHour'], + price_per_hour=instance_type['price_per_hour'], description=instance_type['description'], cpu=instance_type['cpu'], gpu=instance_type['gpu'], From 0212978f9ae553ca56aec619907396f3a507bc87 Mon Sep 17 00:00:00 2001 From: martingasser Date: Thu, 2 Mar 2023 14:32:59 +0100 Subject: [PATCH 2/2] change pricePerHour to price_per_hour --- tests/unit_tests/instance_types/test_instance_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/instance_types/test_instance_types.py b/tests/unit_tests/instance_types/test_instance_types.py index cce8d5f..a88ac3d 100644 --- a/tests/unit_tests/instance_types/test_instance_types.py +++ b/tests/unit_tests/instance_types/test_instance_types.py @@ -47,7 +47,7 @@ def test_instance_types(http_client): "size_in_gigabytes": STORAGE_SIZE }, "description": INSTANCE_TYPE_DESCRIPTION, - "pricePerHour": "5.00", + "price_per_hour": "5.00", "instance_type": INSTANCE_TYPE } ],