MCPcopy Create free account
hub / github.com/PyCQA/flake8 / test_plugins_all_plugins

Function test_plugins_all_plugins

tests/unit/plugins/finder_test.py:40–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39
40def test_plugins_all_plugins():
41 tree_plugin = _loaded(parameters={"tree": True})
42 logical_line_plugin = _loaded(parameters={"logical_line": True})
43 physical_line_plugin = _loaded(parameters={"physical_line": True})
44 report_plugin = _loaded(
45 plugin=_plugin(ep=_ep(name="R", group="flake8.report")),
46 )
47
48 plugins = finder.Plugins(
49 checkers=finder.Checkers(
50 tree=[tree_plugin],
51 logical_line=[logical_line_plugin],
52 physical_line=[physical_line_plugin],
53 ),
54 reporters={"R": report_plugin},
55 disabled=[],
56 )
57
58 assert tuple(plugins.all_plugins()) == (
59 tree_plugin,
60 logical_line_plugin,
61 physical_line_plugin,
62 report_plugin,
63 )
64
65
66def test_plugins_versions_str():

Callers

nothing calls this directly

Calls 4

all_pluginsMethod · 0.95
_loadedFunction · 0.85
_epFunction · 0.85
_pluginFunction · 0.70

Tested by

no test coverage detected