You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today I've tried to add a fixture with parametrization using lazy_fixture in combination with autouse=True and the tests are now ERRORing with:
_____ ERROR at setup of MyNoseTestClass.test_foo ________
test_foo does not support fixtures, maybe unittest.TestCase subclass?
Node id: path/test_foo.py::MyNoseTestClass::test_foo
Function type: TestCaseFunction
The indication is right and maybe some check would avoid this issue.
Not that some other fixtures with autouse=True but without lazy_fixture are not changing the test behaviour
The text was updated successfully, but these errors were encountered:
Hi all,
We have some legacy nose-style tests in our test suite. They are also run nicely via pytest (https://docs.pytest.org/en/latest/nose.html).
Today I've tried to add a fixture with parametrization using
lazy_fixture
in combination withautouse=True
and the tests are now ERRORing with:The indication is right and maybe some check would avoid this issue.
Not that some other fixtures with
autouse=True
but withoutlazy_fixture
are not changing the test behaviourThe text was updated successfully, but these errors were encountered: