Skip to content

Commit

Permalink
fixed unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTConrad committed Dec 4, 2024
1 parent 8860211 commit 6d656a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_aws_scan(self):
assert Path(results_dir).exists() is True
with open(results_dir.joinpath(f"aws-cost-{sub_id}.json")) as f:
costs = json.load(f)
assert len(costs["data"]) >= 100
assert len(costs["data"]) >= 50
# Make sure "aws-cost-foo.json" doesn't exist
bad_costs_file = Path(results_dir.joinpath("aws-cost-foo.json"))
assert not bad_costs_file.is_file()
Expand Down Expand Up @@ -119,7 +119,7 @@ def test_aws_dash(self):
assert Path(results_dir).exists() is True
with open(results_dir.joinpath(f"aws-cost-{sub_id}.json")) as f:
costs = json.load(f)
assert len(costs["data"]) >= 100
assert len(costs["data"]) >= 50
with open(results_dir.joinpath(f"aws-instances-{sub_id}.json")) as f:
instances = json.load(f)
assert len(instances["data"]) >= 5
Expand Down

0 comments on commit 6d656a9

Please sign in to comment.