import pytest from flask import current_app @pytest.fixture def test_response_length(client): r = client.get('/log') assert len(r) == 0