Flask - Testing Flask Applications
You want to test a Flask route that requires a custom header
X-API-KEY. How do you include this header in a test client GET request?X-API-KEY. How do you include this header in a test client GET request?headers argument as a dictionary.headers={'X-API-KEY': 'secret'} in the GET request.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions