pytest-services
pytest-services copied to clipboard
Use https://github.com/cgoldberg/xvfbwrapper for xvfb management
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.
makes total sense to me