Currently, watcher_getter is session scoped, which means that the finalizer will be session scoped too. Would it make sense to have watcher_getter_function accept request from the "real" fixture instead of the request from watcher_getter?
The implementations of process fixtures would then have to pass request explicitly:
@pytest.fixture
def celery(request):
return watcher_getter(request, 'celery', ['worker'])
(I'm trying to implement a celery worker that run function scoped, will open a separate issue to see if that is a good fit for pytest-services)
Currently,
watcher_getteris session scoped, which means that the finalizer will be session scoped too. Would it make sense to havewatcher_getter_functionacceptrequestfrom the "real" fixture instead of the request fromwatcher_getter?The implementations of process fixtures would then have to pass request explicitly:
(I'm trying to implement a celery worker that run function scoped, will open a separate issue to see if that is a good fit for pytest-services)