Skip to content

Commit

Permalink
chore: update owner to owners as a list
Browse files Browse the repository at this point in the history
  • Loading branch information
IronCore864 committed Aug 7, 2024
1 parent 45a2434 commit ba6a3ec
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]
owner: str
owners: List[str]


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

provider: _RoleTestSpec
requirer: _RoleTestSpec
owner: str
owners: List[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", [])
requirers = charms.get("requirers", [])
owner = charms.get("owner", "")
owners = charms.get("owners", "")

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,
"owner": owner,
"owners": owners,
}
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 [],
},
"owner": charms.get("owner", "") if charms else "",
"owners": charms.get("owners", "") if charms else "",
}


Expand Down

0 comments on commit ba6a3ec

Please sign in to comment.