Skip to content

Commit

Permalink
Merge pull request #22 from IronCore864/main
Browse files Browse the repository at this point in the history
feat: change owners to maintainers
  • Loading branch information
PietroPasotti authored Sep 24, 2024
2 parents 443060f + 97e5a6c commit d86bb2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interface_tester/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class _InterfacesDotYamlSpec(TypedDict):

providers: List[_CharmTestConfig]
requirers: List[_CharmTestConfig]
owners: List[str]
maintainer: str


class _RoleTestSpec(TypedDict):
Expand All @@ -82,7 +82,7 @@ class InterfaceTestSpec(TypedDict):

provider: _RoleTestSpec
requirer: _RoleTestSpec
owners: List[str]
maintainer: str


def get_schema_from_module(module: object, name: str) -> Type[pydantic.BaseModel]:
Expand Down Expand Up @@ -175,7 +175,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml

providers = charms.get("providers") or []
requirers = charms.get("requirers") or []
owners = charms.get("owners") or []
maintainer = charms.get("maintainer") or ""

if not isinstance(providers, list) or not isinstance(requirers, list):
raise TypeError(
Expand All @@ -202,7 +202,7 @@ def _gather_charms_for_version(version_dir: Path) -> Optional[_InterfacesDotYaml
spec: _InterfacesDotYamlSpec = {
"providers": provider_configs,
"requirers": requirer_configs,
"owners": owners,
"maintainer": maintainer,
}
return spec

Expand Down Expand Up @@ -277,7 +277,7 @@ def gather_test_spec_for_version(
"schema": schemas.get("requirer"),
"charms": charms.get("requirers", []) if charms else [],
},
"owners": charms.get("owners") or [] if charms else [],
"maintainer": charms.get("maintainer") or "" if charms else "",
}


Expand Down

0 comments on commit d86bb2a

Please sign in to comment.