MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_partial_assert

Function test_partial_assert

test/mitmproxy/proxy/test_tutils.py:63–73  ·  view source on GitHub ↗

Developers can assert parts of a playbook and the continue later on.

(tplaybook)

Source from the content-addressed store, hash-verified

61
62
63def test_partial_assert(tplaybook):
64 """Developers can assert parts of a playbook and the continue later on."""
65 tplaybook >> TEvent()
66 tplaybook << TCommand()
67 assert tplaybook
68
69 tplaybook >> TEvent()
70 tplaybook << TCommand()
71 assert tplaybook
72
73 assert len(tplaybook.actual) == len(tplaybook.expected) == 4
74
75
76@pytest.mark.parametrize("typed", [True, False])

Callers

nothing calls this directly

Calls 2

TEventClass · 0.85
TCommandClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…