22 lines
337 B
Python
22 lines
337 B
Python
import pytest
|
|
|
|
from scipaperloader import create_app
|
|
|
|
|
|
@pytest.fixture
|
|
def app():
|
|
app = create_app({"TESTING": True})
|
|
# set up here
|
|
yield app
|
|
# tear down here
|
|
|
|
|
|
@pytest.fixture
|
|
def client(app):
|
|
return app.test_client()
|
|
|
|
|
|
def test_index(client):
|
|
response = client.get("/")
|
|
assert b"It works!" in response.data
|