Closed ryanovas closed 1 year ago
Yup looks like this was changed in Django 4.2 https://docs.djangoproject.com/en/4.2/topics/testing/tools/. Thanks for reporting.
I opened #1465 to fix this. Feel free to add a test case with a PR. Would really appreciate it if you do.
Trying to send headers using GraphQLTestCase doesn't work. This is my test:
and if I try to log those headers in my code I get
None
. However if I follow the code tographene_django/utils/testing.py
and change line 58 from:to
Then it works fine.
Please tell us about your environment:
python = "^3.11" django = "^4.2.1" graphene-django = "^3.1.1"