Pytest fixtures seems like a very powerful tool. I never used them for now, except ones with autouse=True
because a test function defined with fixture1
and fixture2
can not be run anymore as:
from module.tests import test_with_fixtures
test_with_fixtures()
It's now missing 2 required positional arguments, fixture1
and fixture2
. And since you can not call fixture directly.. what is the usual way to work with unit test defined with fixtures?