(pd, seg)
| 78 | |
| 79 | |
| 80 | def test_cleanup_promoted(pd, seg): |
| 81 | pd.create(seg) |
| 82 | assert pd.is_running(seg) |
| 83 | |
| 84 | with pd.download(seg): |
| 85 | pass |
| 86 | |
| 87 | assert not pd.is_running(seg) |
| 88 | assert pd.contains(seg) |
| 89 | |
| 90 | nxt = next(seg.future_segment_stream()) |
| 91 | pd.clear_except([nxt]) |
| 92 | assert not pd.contains(seg) |
| 93 | |
| 94 | |
| 95 | def test_running_size_error(pd, seg, monkeypatch, raise_eperm): |
nothing calls this directly
no test coverage detected