From 2b6a6f867e94bac3f66ab04321b2d39434495eff Mon Sep 17 00:00:00 2001 From: salman2013 Date: Wed, 4 Oct 2023 15:57:33 +0500 Subject: [PATCH] chore: remove plugin which is not using --- .../pytest_plugin.py | 29 ------------------- 1 file changed, 29 deletions(-) delete mode 100644 openedx/testing/coverage_context_listener/pytest_plugin.py diff --git a/openedx/testing/coverage_context_listener/pytest_plugin.py b/openedx/testing/coverage_context_listener/pytest_plugin.py deleted file mode 100644 index a3679027e8..0000000000 --- a/openedx/testing/coverage_context_listener/pytest_plugin.py +++ /dev/null @@ -1,29 +0,0 @@ -""" -A pytest plugin that reports test contexts to coverage running in another process. -""" - -import pytest - - -class RemoteContextPlugin: - """ - Pytest plugin for reporting pytests contexts to coverage running in another process - """ - def __init__(self, config): - self.config = config - self.active = config.getoption("pytest-contexts") - - -@pytest.hookimpl(tryfirst=True) -def pytest_configure(config): - config.pluginmanager.register(RemoteContextPlugin(config), "remotecontextplugin") - - -def pytest_addoption(parser): - group = parser.getgroup("coverage") - group.addoption( - "--pytest-remote-contexts", - action="store_true", - dest="pytest-contexts", - help="Capture the pytest contexts that coverage is being captured in in another process", - )