(self, corrupt_data, caplog_async)
| 76 | await caplog_async.await_log("corrupted") |
| 77 | |
| 78 | async def test_corrupt(self, corrupt_data, caplog_async): |
| 79 | rf = readfile.ReadFile() |
| 80 | with taddons.context(rf): |
| 81 | with pytest.raises(exceptions.FlowReadException): |
| 82 | await rf.load_flows(io.BytesIO(b"qibble")) |
| 83 | |
| 84 | caplog_async.clear() |
| 85 | with pytest.raises(exceptions.FlowReadException): |
| 86 | await rf.load_flows(corrupt_data) |
| 87 | await caplog_async.await_log("file corrupted") |
| 88 | |
| 89 | async def test_nonexistent_file(self, caplog): |
| 90 | rf = readfile.ReadFile() |
nothing calls this directly
no test coverage detected