18 lines
274 B
Python
18 lines
274 B
Python
import pytest
|
|
|
|
from flask import current_app
|
|
|
|
|
|
@pytest.fixture
|
|
def client():
|
|
current_app.config['TESTING'] = True
|
|
|
|
with current_app.test_client() as client:
|
|
yield client
|
|
|
|
|
|
def test_response_length(client):
|
|
r = client.post('/log')
|
|
|
|
assert len(r) == 0
|