Skip to content

Commit

Permalink
Sort services
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Martin committed Dec 26, 2021
1 parent 3224c61 commit 3e0714c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudwanderer/aws_interface/boto3_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def __init__(
def list_available_services(self, type_name: str = "resources-1") -> List[str]:
_ = type_name
"""Return a list of service names that can be loaded."""
return list(set(self.cloudwanderer_available_services + self.boto3_available_services))
return sorted(list(set(self.cloudwanderer_available_services + self.boto3_available_services)))

def determine_latest_version(self, service_name: str, type_name: str) -> str:
return max(self.list_api_versions(service_name, type_name))
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/aws_interface/test_boto3_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_merged_service_loader_list_available_services():
custom_service_loader=mock_custom_service_loader, botocore_session=mock_botocore_session
)

assert subject.list_available_services() == ["lambda", "ec2"]
assert subject.list_available_services() == ["ec2", "lambda"]


def test_custom_service_loader_path_default():
Expand Down

0 comments on commit 3e0714c

Please sign in to comment.