Closed Aran-Fey closed 4 months ago
I wrote a test case with a parametrized func parameter:
func
import pytest @pytest.mark.parametrize('func', [3]) def test_something(func): pass
And to my surprise, got a strange error from pytest:
FAILED untitled.py::test_something[3] - TypeError: AltPytestAsyncioPlugin.pytest_pyfunc_call.<locals>.run_obj.<locals>.<lambda>() got multiple values for argument 'func'
This also happens for async test cases, though the error is slightly different:
FAILED untitled.py::test_something[3] - TypeError: converted_async_test() got multiple values for argument 'func'
Hi @Aran-Fey, thanks for the bug report. This one seems to be a fairly trivial fix, which I've released as part of 0.8.1 :)
I wrote a test case with a parametrized
func
parameter:And to my surprise, got a strange error from pytest:
This also happens for async test cases, though the error is slightly different: