pytest-services icon indicating copy to clipboard operation
pytest-services copied to clipboard

Use https://github.com/cgoldberg/xvfbwrapper for xvfb management

Open bubenkoff opened this issue 10 years ago • 2 comments

bubenkoff avatar Aug 10 '15 21:08 bubenkoff

I'm not sure it makes sense to integrate this in pytest-services?

xvfbwrapper master (not yet on PyPI) supports file locking for getting displays and using it is as simple as:

@pytest.fixture(scope='session')
def xvfb_display(request):
    with Xvfb(width=1280, height=1024) as vdisplay:
        yield vdisplay

It works fine for xdist runs too.

pelme avatar Nov 08 '16 11:11 pelme

makes total sense to me

bubenkoff avatar Nov 08 '16 11:11 bubenkoff