MCPcopy Create free account
hub / github.com/wal-e/wal-e / test_cleanup_promoted

Function test_cleanup_promoted

tests/test_prefetch.py:80–92  ·  view source on GitHub ↗
(pd, seg)

Source from the content-addressed store, hash-verified

78
79
80def 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
95def test_running_size_error(pd, seg, monkeypatch, raise_eperm):

Callers

nothing calls this directly

Calls 6

is_runningMethod · 0.80
downloadMethod · 0.80
containsMethod · 0.80
future_segment_streamMethod · 0.80
clear_exceptMethod · 0.80
createMethod · 0.45

Tested by

no test coverage detected