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

Function test_completed_empty_cache_roundtrip

tests/test_rrule.py:5053–5063  ·  view source on GitHub ↗
(roundtrip, kind)

Source from the content-addressed store, hash-verified

5051
5052@pytest.mark.parametrize("kind", ["rule", "set"])
5053def test_completed_empty_cache_roundtrip(roundtrip, kind):
5054 if kind == "rule":
5055 original = rrule(
5056 DAILY, dtstart=datetime(2024, 1, 1), count=0, cache=True
5057 )
5058 else:
5059 original = rruleset(cache=True)
5060 assert list(original) == []
5061 restored = roundtrip(original)
5062 assert list(restored) == []
5063 assert restored.count() == 0
5064
5065
5066@pytest.mark.smoke

Callers

nothing calls this directly

Calls 4

rruleClass · 0.90
rrulesetClass · 0.90
roundtripFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected