Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: parameter 'xxxx' not found in test function signature 'TestClass() #215

Closed
smarie opened this issue Jun 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@smarie
Copy link
Owner

smarie commented Jun 3, 2021

Using @parametrize on a class does not work as usual pytest:

@parametrize(foo=("bar",))
class TestFoo:
    def test_foo(self, foo):
        pass

raises a ValueError

@smarie smarie added the bug Something isn't working label Jun 3, 2021
@smarie
Copy link
Owner Author

smarie commented Jun 3, 2021

Note that on python 2 this raises ValueError: callable <class TestFoo at 0x0000000005725708> is not supported by signature

@smarie smarie closed this as completed in ff2e9fd Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant