MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_generated_files

Function test_generated_files

test/mitmproxy/tools/web/test_app.py:40–46  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

38
39@pytest.mark.parametrize("filename", list((here / "../../../../web/gen").glob("*.py")))
40async def test_generated_files(filename):
41 mod = importlib.import_module(f"web.gen.{filename.stem}")
42 expected = await mod.make()
43 actual = mod.filename.read_text().replace("\r\n", "\n")
44 assert actual == expected, (
45 f"{mod.filename} must be regenerated by running {filename.resolve()}."
46 )
47
48
49def test_all_handlers_have_auth():

Callers

nothing calls this directly

Calls 3

makeMethod · 0.45
replaceMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…