(request, tzpath_zoneinfo_cache)
| 45 | |
| 46 | @pytest.fixture |
| 47 | def transition(request, tzpath_zoneinfo_cache): |
| 48 | key, dt, fold, offset = request.param |
| 49 | if dt.tzinfo is not None: |
| 50 | dt_n = dt.astimezone(tz.UTC).replace(tzinfo=None) |
| 51 | else: |
| 52 | dt_n = dt |
| 53 | |
| 54 | if tzpath_zoneinfo_cache == "v1" and not (MIN_DT_V1 <= dt_n <= MAX_DT_V1): |
| 55 | pytest.skip( |
| 56 | "Out of range for V1 files" |
| 57 | ) # TODO: Avoid generating these tests at all |
| 58 | yield ExpectedTransition(key=key, dt=dt, fold=fold, offset=offset) |
| 59 | |
| 60 | |
| 61 | @pytest.fixture(scope="module") |
nothing calls this directly
no test coverage detected