chore: fix tests

This commit is contained in:
salman2013
2023-10-04 19:41:57 +05:00
parent 936a6c0983
commit 01a4908562

View File

@@ -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",
)