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

Add a test server #7

Open
Stranger6667 opened this issue Apr 10, 2020 · 2 comments
Open

Add a test server #7

Stranger6667 opened this issue Apr 10, 2020 · 2 comments

Comments

@Stranger6667
Copy link
Owner

It will be really helpful to verify generated queries against a real GraphQL server

@Hultner
Copy link

Hultner commented Apr 14, 2020

How does the requirements for this look?

One option is to build something using graphene which can for instance easily be used in FastAPI (via Starlette) but also used in other contexts such as for Django and flask through extensions.

Another one is if we exit the python ecosystem to use something like hasura or graphile, however it might not be worth the extra hassle with a larger toolchain required if we depend on these.

@Stranger6667
Copy link
Owner Author

I was thinking to have something similar to the Schemathesis's internal test server, so it can be used as a pytest fixture with some configuration (e.g. different schemas for different tests)

I think that the easiest way will be to use graphene with Fast API, I am really keen to try it out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants