This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
consumer-api/consumer_api/tests/consumers_view_test.py
Fabian 6ead97eee0
Some checks failed
continuous-integration/drone/push Build is failing
minor fix
2020-05-08 21:03:40 +02:00

17 lines
273 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