(tmp_path)
| 96 | |
| 97 | |
| 98 | def test_websocket(tmp_path): |
| 99 | sa = save.Save() |
| 100 | with taddons.context(sa) as tctx: |
| 101 | p = str(tmp_path / "foo") |
| 102 | tctx.configure(sa, save_stream_file=p) |
| 103 | |
| 104 | f = tflow.twebsocketflow() |
| 105 | sa.request(f) |
| 106 | sa.websocket_end(f) |
| 107 | |
| 108 | f = tflow.twebsocketflow() |
| 109 | sa.request(f) |
| 110 | sa.websocket_end(f) |
| 111 | |
| 112 | tctx.configure(sa, save_stream_file=None) |
| 113 | assert len(rd(p)) == 2 |
| 114 | |
| 115 | |
| 116 | def test_save_command(tmp_path): |
nothing calls this directly
no test coverage detected
searching dependent graphs…