chore: remove bok choy settings

This commit is contained in:
salman2013
2023-09-27 10:58:37 +05:00
parent 8c9232ace9
commit 42ca0ddec4
33 changed files with 28 additions and 2500 deletions

View File

@@ -3,9 +3,9 @@ A pytest plugin that reports test contexts to coverage running in another proces
"""
import pytest
import requests
# import requests
from pavelib.utils.envs import Env
# from pavelib.utils.envs import Env
class RemoteContextPlugin:
@@ -25,16 +25,17 @@ class RemoteContextPlugin:
def pytest_runtest_call(self, item):
self.doit(item, "call")
def doit(self, item, when): # lint-amnesty, pylint: disable=missing-function-docstring
if self.active:
for cfg in Env.BOK_CHOY_SERVERS.values():
result = requests.post(
'http://{host}:{port}/coverage_context/update_context'.format(**cfg),
{
'context': f"{item.nodeid}|{when}",
}
)
assert result.status_code == 204
# commented for testing
# def doit(self, item, when): # lint-amnesty, pylint: disable=missing-function-docstring
# if self.active:
# for cfg in Env.BOK_CHOY_SERVERS.values():
# result = requests.post(
# 'http://{host}:{port}/coverage_context/update_context'.format(**cfg),
# {
# 'context': f"{item.nodeid}|{when}",
# }
# )
# assert result.status_code == 204
@pytest.hookimpl(tryfirst=True)