- #1
rgtr
- 92
- 8
- TL;DR Summary
- I am trying to create the configuring for pytest. For some reason I am getting the error "missing 1 required positional argument: 'start_response'".
I just don't know how to fix this. I linked my github and the complete error message below.
Can someone help?
Also the code is in python flask.
Here is the code updated https://github.com/NML240/flaskblog2 Here are 2 relevant files https://github.com/NML240/flaskblog2/blob/main/app/config.py and https://github.com/NML240/flaskblog2/blob/main/app/tests/conftest.py.
In conftest.py I created config function to set up for pytest but I am getting an error.
Here is the complete error.
Here is the relevant error.
. I am not sure if this is caused by the function make_app_run_in_test_env or create_app function.
My guess from the error message is the former function.
Any idea how to fix this?
Thanks
Here is the code updated https://github.com/NML240/flaskblog2 Here are 2 relevant files https://github.com/NML240/flaskblog2/blob/main/app/config.py and https://github.com/NML240/flaskblog2/blob/main/app/tests/conftest.py.
In conftest.py I created config function to set up for pytest but I am getting an error.
Here is the complete error.
Here is the relevant error.
Code:
typeError: call() missing 1 required positional argument: 'start_response'
My guess from the error message is the former function.
Any idea how to fix this?
Thanks