-
- Notifications
You must be signed in to change notification settings - Fork 149
Closed
Description
If i define a custom fixture like:
@pytest.fixture(scope='module')
def my_fixture(mocker):
// code using mocker
class TestMyModule(object):
def test_one(self, my_fixture): // test code
When i run this i get:
ScopeMismatch: You tried to access the 'function' scoped fixture 'mocker' with a 'module' scoped request object, involved factories
I'm i doing something wrong to do something like this? is there some reason why this is not supported?
Thanks.
MRigal, prudhvikrishnadandamudi and abbazs
Metadata
Metadata
Assignees
Labels
No labels