-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Testing guide #151
Comments
@AriaMoradi I believe it is fairly simple.
I prefer the latter because it is more real in the django domain. |
Hello, in my app I use this base test class:
Then use it like:
This can be modified to allow queries with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Strawberry provides a guide on testing: https://strawberry.rocks/docs/operations/testing
That guide doesn't work in a django context, for example tests need to use
django.test.TestCase
for model and database support and mutations and queries might need access to a request object for handling authentication, language and other stuff.Can someone share some test examples please?
Also I believe a page in
docs/references
will be helpful to users of this package.Upvote & Fund
The text was updated successfully, but these errors were encountered: