MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / reset_plugins

Function reset_plugins

tests/conftest.py:375–388  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373
374@pytest.fixture(scope="function", autouse=True)
375def reset_plugins():
376 from aura.analyzers.python.readonly import ReadOnlyAnalyzer
377 from aura import plugins
378
379 read_only_hooks = ReadOnlyAnalyzer.hooks
380 cache = plugins.PLUGIN_CACHE.copy()
381
382 try:
383 ReadOnlyAnalyzer.hooks = []
384 plugins.PLUGIN_CACHE = {"analyzers": {}}
385 yield
386 finally:
387 ReadOnlyAnalyzer.hooks = read_only_hooks
388 plugins.PLUGIN_CACHE = cache
389
390
391@pytest.fixture(scope="module")

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected