

@pytest.yield_fixture
def server_thread(app_config, webtest):
    app_config.get_settings()['csp']['script-src'].append("'unsafe-eval'")
    _server_thread = LiveServerThread(webtest.app)
    _server_thread.daemon = True
    app_config.start()
    _server_thread.is_ready.wait()
    try:
        if _server_thread.error:
            raise _server_thread.error
        (yield _server_thread)
    finally:
        _server_thread.terminate()
        _server_thread.join()

dataset/ETHPy150Open pypa/warehouse/tests/conftest.py server_thread/VarMisuse@49/79 `_server_thread`->`app_config`