We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
conftest.py:
conftest.py
import pytest import os, sys from src.main import app from os.path import dirname, join, abspath sys.path.insert(0, abspath(join(dirname(__file__), '../src'))) @pytest.fixture def client(): return app.test_client()
my_test.py:
my_test.py
def test_fibonacci_pass(client): response = client.get('/api/v1/fibonacci?n=10', follow_redirects=True) > assert response.headers['content-type'] == "text/html; charset=utf-8" E AttributeError: 'coroutine' object has no attribute 'headers'
Environment:
$ pipenv graph | grep -i quart quart-cors==0.8.0 └── Quart quart-flask-patch==0.3.0 └── Quart
conftest.py:my_test.py:Environment: