Closed nellessen closed 5 years ago
This fixes an issue when you try to annotate types of your test function parameters; e.g.:
@pytest.mark.gen_test async def test_hello_world(http_client: AsyncHTTPClient): response = await http_client.fetch('/') assert response.code == 200
The above code will raise a ValueError: ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them
ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them
@nellessen I added a test to #43 showing that this should now work on master. Feel free to comment if there are still issues, and I can reopen this!
This fixes an issue when you try to annotate types of your test function parameters; e.g.:
The above code will raise a ValueError:
ValueError: Function has keyword-only parameters or annotations, use getfullargspec() API which can support them