Skip to content

Add unit tests for AWS and Azure cloud utility functions#33

Merged
bencehezso merged 1 commit into
mainfrom
task/add_cloud_utils_tests
May 12, 2026
Merged

Add unit tests for AWS and Azure cloud utility functions#33
bencehezso merged 1 commit into
mainfrom
task/add_cloud_utils_tests

Conversation

@bencehezso
Copy link
Copy Markdown
Contributor

Adds unit test coverage for core/utils_aws.py and core/utils_azure.py, which previously had zero tests.

This PR introduces tests/test_utils_aws.py (17 tests) and tests/test_utils_azure.py (11 tests) covering pure utility functions (convert_datetime, get_missing_months_aws, get_missing_months_azure), the retry mechanism (aws_api_call_with_retry - throttling, non-throttling errors, max retries), the Azure is_resource_inventory_empty helper, and error propagation behavior in all four inventory builders. Cloud SDK calls are mocked throughout so no real credentials or API access are needed.

@bencehezso bencehezso self-assigned this May 12, 2026
@bencehezso bencehezso added the enhancement New feature or request label May 12, 2026
@bencehezso bencehezso merged commit 5fa6129 into main May 12, 2026
3 checks passed
@bencehezso bencehezso deleted the task/add_cloud_utils_tests branch May 12, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant