From d87cbbfd21baf5919d1af6c5ce7278970a1361e2 Mon Sep 17 00:00:00 2001 From: Byron Himes Date: Wed, 8 May 2024 08:45:01 +0200 Subject: [PATCH] Refactor config attr access Co-authored-by: Christoph Zwerschke --- tests/test_orchestrator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_orchestrator.py b/tests/test_orchestrator.py index ff35082..b7e3826 100644 --- a/tests/test_orchestrator.py +++ b/tests/test_orchestrator.py @@ -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