1
0

conftest.py 307 B

12345678910111213
  1. import io
  2. import pathlib
  3. import typing
  4. import pytest
  5. @pytest.fixture
  6. def google_calendar_file() -> typing.Iterator[io.BufferedReader]:
  7. with pathlib.Path(__file__).parent.joinpath(
  8. "resources", "google-calendar.ics"
  9. ).open("rb") as file:
  10. yield typing.cast(io.BufferedReader, file)