-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Issues on using schemathesis with pytest-aiohttp #121
Comments
Hello @playpauseandstop !
But it is possible to run via custom executors - https://hypothesis.readthedocs.io/en/latest/details.html#custom-function-execution And it is definitely something that we can work on soon :) As for a quick workaround in your example, it should be possible to use an explicit loop and
I will add more details one I'll have them :) |
Thanks for quick answer! Yeah, I've thought about using test functions instead of coroutines, just was not aware that I'll try to dig deeper early tomorrow and will let you know about results. Thanks for the directions |
There is a small conflict with the |
Hej @playpauseandstop ! The problem should be solved in the |
Thanks a lot @Stranger6667! I haven't time today to play with your proposed solution from #121 (comment), so looking forward to try new release instead. |
Hi,
First, thanks for a great library and an effort behind!
I'm happy to try it, but ran into the issue, after tried to integrate it with my aiohttp.web application via next test case:
Where,
aiohttp_client
is a fixture from pytest-aiohttppetstore.app:create_app
factory for creatingweb.Application
This test case results in,
after running pytest as,
More data that might be helpful,
Maybe, I got the concept behind
schemathesis
wrong, but I thought that I'm being able to,schema
instance from the OpenAPI 3.0 schema file, which stores next to test case module@schema.parametrize()
decoratorweb.Application
and testaiohttp_client
inside the testIf this not possible, I will happy to know on proposed workflow to test my aiohttp.web application with
schemathesis
.The text was updated successfully, but these errors were encountered: