Skip to content

Commit

Permalink
comment improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lcouzens committed Feb 14, 2025
1 parent 3231a02 commit e5da649
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nise/generators/aws/ec2_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EC2Generator(AWSGenerator):

INSTANCE_TYPES = (
# NOTE: Each tuple represents
# (instance type, physical_cores, vCPUs, memory, storage, family, cost, rate, savings, description)
# (instance type, physical_cores, vCPUs, memory, storage, family, cost, rate, Reserved_instances, savings, description)
(
"m5.large",
"1",
Expand Down
2 changes: 1 addition & 1 deletion tests/aws_static_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ generators:
resource_id: 55555555
product_sku: VEAJHRNKTJZQ
region: us-east-1a
resourved_instance: true
reserved_instance: True
- S3Generator:
start_date: last_month
end_date: last_month
Expand Down
1 change: 1 addition & 0 deletions tests/test_aws_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,7 @@ def test_update_data_ec2_reserved_instances(self):
row = generator._update_data(start_row, self.two_hours_ago, self.now)

self.assertEqual(row["lineItem/LineItemType"], "DiscountedUsage")
self.assertEqual(row["lineItem/UnblendedCost"], 0)

def test_update_data(self):
"""Test EBS specific update data method."""
Expand Down

0 comments on commit e5da649

Please sign in to comment.