diff --git a/interface_tester/cli/discover.py b/interface_tester/cli/discover.py index 4ea0dc2..bb340ed 100644 --- a/interface_tester/cli/discover.py +++ b/interface_tester/cli/discover.py @@ -61,7 +61,7 @@ def pprint_case(case: Callable): if charms: print(" - charms:") charm: _CharmTestConfig - for charm in sorted(charms): + for charm in sorted(charms, key=lambda cfg: cfg.name): if isinstance(charm, str): print(" - ") continue diff --git a/pyproject.toml b/pyproject.toml index 7d7b884..fbd02ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta" [project] name = "pytest-interface-tester" -version = "1.0.2" +version = "1.0.3" authors = [ { name = "Pietro Pasotti", email = "pietro.pasotti@canonical.com" }, ]