pbr-ayct-backend/tests/test_ayct_backend.py
2021-12-01 14:50:03 +01:00

19 lines
310 B
Python

import os
import tempfile
import pytest
from ayct_backend import create_app
@pytest.fixture
def app():
app = create_app()
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