pbr-ayct-backend/tests/test_ayct_backend.py

19 lines
310 B
Python
Raw Permalink Normal View History

import os
import tempfile
import pytest
2021-12-01 14:25:42 +01:00
from ayct_backend import create_app
@pytest.fixture
2021-12-01 14:50:03 +01:00
def app():
app = create_app()
2021-12-01 14:50:03 +01:00
yield app
@pytest.fixture
def client(app):
yield app.test_client()
def test_first_endpoint(client):
rv = client.get("/hello")
assert b'All You Can Tweet' in rv.data