Ensure a raised exception doesn't move WAL into place
(pd, seg)
| 55 | |
| 56 | |
| 57 | def test_atomic_download_failure(pd, seg): |
| 58 | "Ensure a raised exception doesn't move WAL into place" |
| 59 | pd.create(seg) |
| 60 | e = Exception('Anything') |
| 61 | |
| 62 | with pytest.raises(Exception) as err: |
| 63 | with pd.download(seg): |
| 64 | raise e |
| 65 | |
| 66 | assert err.value is e |
| 67 | assert not pd.is_running(seg) |
| 68 | assert not pd.contains(seg) |
| 69 | |
| 70 | |
| 71 | def test_cleanup_running(pd, seg): |
nothing calls this directly
no test coverage detected