MCPcopy Create free account
hub / github.com/dateutil/dateutil / transition

Function transition

tests/test_tzfile.py:47–58  ·  view source on GitHub ↗
(request, tzpath_zoneinfo_cache)

Source from the content-addressed store, hash-verified

45
46@pytest.fixture
47def 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")

Callers

nothing calls this directly

Calls 2

ExpectedTransitionClass · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected