refactor(data-extraction): Improve variable naming and exception handling

This commit is contained in:
TrisNol
2023-09-23 10:21:26 +02:00
parent 4e25be5466
commit d6223b4192
3 changed files with 11 additions and 11 deletions

View File

@ -51,7 +51,7 @@ def test_parse_stakeholder_org_hidden_in_person() -> None:
}
expected_result = CompanyToCompanyRelationship(
role=RelationshipRoleEnum.KOMMANDITIST, # type: ignore
description="Some Company KG",
name="Some Company KG",
type=CompanyRelationshipEnum.COMPANY,
location=Location(**{"city": "Area 51"}),
)
@ -96,7 +96,7 @@ def test_parse_stakeholder_org() -> None:
"Rolle": {"Rollenbezeichnung": {"content": "Geschäftsführender Direktor"}},
}
expected_result = CompanyToCompanyRelationship(
description="Transparenzregister kG",
name="Transparenzregister kG",
role=RelationshipRoleEnum.DIREKTOR, # type: ignore
type=CompanyRelationshipEnum.COMPANY,
location=Location(