-
Notifications
You must be signed in to change notification settings - Fork 21
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
Missing 2 required positional arguments: 'environ' and 'start_response' with Django 2.2 #56
Comments
Try If that doesn't work let me know what the traceback is and I should be able to offer an alternative solution. Whatever ends up working we can add to the docs in some fashion. |
Hey! It worked! :) |
Yeah, that's the combination of the gabbi and wsgi-intercept. You have to tell wsgi-intercept a host because it keeps a dict of intercept hosts to IOBytes that are doing the interceptinng. gabbi doesn't know or care what the host might be so it makes a uuid which works fine as long as nothing internally is caring about hostnames. If this is a limitation there are probably things we can do to gabbi to allow you to declare an intercepted host. I would think in this instance, though, it is probably easy to tell django you don't care abou that for the duration of the tests. Any suggestions on how the docs should be improved? |
Actually this random hostname beahviour isn't a limitation, I just had to disable the allowed hosts check. |
Hi!
I'm trying to run my gabbits tests using wsgi-interceptor against a django 2.2 application
Thats my load_tests function, where I import my django application in order to pass it to the interceptor
This is the contain of django_api/wsgi.py (which comes by default with django)
When I run my gabbits tests using
python -m testtools.run -v test/test_racotest.py
I'm getting the following traceback for each test:Does anyone have any idea of where is the error? Could it be a compatibility error between django wsgi default application and wsgi-intercept?
Thank you in advance! :)
The text was updated successfully, but these errors were encountered: