Exemplo n.º 1
0
Arquivo: plugin.py Projeto: vv3g/dash
def dashr(request, dashr_server, tmpdir):
    with DashRComposite(
            dashr_server,
            browser=request.config.getoption("webdriver"),
            headless=request.config.getoption("headless"),
            options=request.config.hook.pytest_setup_options(),
            download_path=tmpdir.mkdir("download").strpath,
    ) as dc:
        yield dc
Exemplo n.º 2
0
def dashr(request, dashr_server, tmpdir):
    with DashRComposite(
            dashr_server,
            browser=request.config.getoption("webdriver"),
            remote=request.config.getoption("remote"),
            remote_url=request.config.getoption("remote_url"),
            headless=request.config.getoption("headless"),
            options=request.config.hook.pytest_setup_options(),
            download_path=tmpdir.mkdir("download").strpath,
            percy_assets_root=request.config.getoption("percy_assets"),
            percy_finalize=request.config.getoption("nopercyfinalize"),
    ) as dc:
        yield dc