(tdata)
| 219 | |
| 220 | |
| 221 | def test_configure(tdata): |
| 222 | cp = ClientPlayback() |
| 223 | with taddons.context(cp) as tctx: |
| 224 | assert cp.count() == 0 |
| 225 | tctx.configure( |
| 226 | cp, client_replay=[tdata.path("mitmproxy/data/dumpfile-018.mitm")] |
| 227 | ) |
| 228 | assert cp.count() == 1 |
| 229 | tctx.configure(cp, client_replay=[]) |
| 230 | with pytest.raises(OptionsError): |
| 231 | tctx.configure(cp, client_replay=["nonexistent"]) |
| 232 | tctx.configure(cp, client_replay_concurrency=-1) |
| 233 | with pytest.raises(OptionsError): |
| 234 | tctx.configure(cp, client_replay_concurrency=-2) |
nothing calls this directly
no test coverage detected
searching dependent graphs…