MCPcopy Index your code
hub / github.com/mitmproxy/mitmproxy / test_order_refresh

Function test_order_refresh

test/mitmproxy/addons/test_view.py:21–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_order_refresh():
22 v = view.View()
23 sargs = []
24
25 def save(*args, **kwargs):
26 sargs.extend([args, kwargs])
27
28 v.sig_view_refresh.connect(save)
29
30 tf = tflow.tflow(resp=True)
31 with taddons.context() as tctx:
32 tctx.configure(v, view_order="time")
33 v.add([tf])
34 tf.timestamp_created = 10
35 assert not sargs
36 v.update([tf])
37 assert sargs
38
39
40def test_order_generators_http():

Callers

nothing calls this directly

Calls 5

addMethod · 0.95
updateMethod · 0.95
contextMethod · 0.80
connectMethod · 0.45
configureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…