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