(roundtrip, kind)
| 5051 | |
| 5052 | @pytest.mark.parametrize("kind", ["rule", "set"]) |
| 5053 | def 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 |