-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
plugin: monkeypatchrelated to the monkeypatch builtin pluginrelated to the monkeypatch builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Originally reported by: BitBucket: ColeVsCode, GitHub: ColeVsCode
Hi, I'd like to be able to create a module or session scoped fixture that uses monkeypatch.
#!python
@pytest.fixture(scope='session')
def usermanager(monkeypatch):
...
This raises an error. There's some comments about this on the pytest-dev list.
https://mail.python.org/pipermail/pytest-dev/2012-November/002157.html
Is there a work-around in the mean time that I can use to change the scope of the monkeypatch fixture?
Tinche, funkyfuture, bossjones, WillFuks, jnj16180340 and 31 more
Metadata
Metadata
Assignees
Labels
plugin: monkeypatchrelated to the monkeypatch builtin pluginrelated to the monkeypatch builtin plugintype: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch