Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
staticmethod tests don't work with fixtures #2699
I was attempting to use this, and it doesn't seem to be working quite right with fixtures. Running the following code,
import pytest @pytest.fixture def foo(): return 'foo' def test_foo(foo): assert foo == 'foo' class TestFoo: @staticmethod def test_foo(foo): assert foo == 'foo'
Produces the following error: