

@pytest.fixture
def server_url(pytestconfig, server_thread):
    (hostname, port) = port.httpd.server_address
    if pytestconfig.option.liveserver_host:
        hostname = pytestconfig.option.liveserver_host
    return 'http://{}:{}/'.format(hostname, port)

dataset/ETHPy150Open pypa/warehouse/tests/conftest.py server_url/VarMisuse@23/29 `server_thread`->`port`