Skip to content

Commit

Permalink
Refactor config attr access
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Zwerschke <cito@online.de>
  • Loading branch information
TheByronHimes and Cito authored May 8, 2024
1 parent ca2061d commit d87cbbf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ async def test_access_request(
"""
test_user = await joint_fixture.user_dao.get_by_id(TEST_USER.id)

event_type_to_use = joint_fixture.config.model_dump()[
f"access_request_{event_type}_event_type"
]
event_type_to_use = getattr(joint_fixture.config, f"access_request_{event_type}_event_type")

assert event_type_to_use

Expand Down

0 comments on commit d87cbbf

Please sign in to comment.