Skip to content

Function scoped processes #5

@pelme

Description

@pelme

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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions