From fa54de2f9f08464ec53963ed867963866f7b33ba Mon Sep 17 00:00:00 2001 From: Nicco Kunzmann Date: Thu, 29 Sep 2022 11:24:12 +0100 Subject: [PATCH] access calendars like events in tests --- src/icalendar/tests/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/icalendar/tests/conftest.py b/src/icalendar/tests/conftest.py index e69bb690..4984d1ac 100644 --- a/src/icalendar/tests/conftest.py +++ b/src/icalendar/tests/conftest.py @@ -46,7 +46,6 @@ def events(): return DataSource(EVENTS_FOLDER, icalendar.Event.from_ical) @pytest.fixture -def calendar_file(request): - print(request.param) - return os.path.join(CALENDARS_FOLDER, request.param) +def calendars(): + return DataSource(CALENDARS_FOLDER, icalendar.Calendar.from_ical)