Added overall application build test
parent
6094fbb608
commit
ec961c39c3
|
@ -27,8 +27,4 @@ def app():
|
|||
# Create the test client
|
||||
@pytest.fixture
|
||||
def client(app):
|
||||
return app.test_client()
|
||||
|
||||
# TODO: Possible functions/features to test:
|
||||
# - Constructing app without errors (overall integration test)
|
||||
# - Search results (feature test)
|
||||
return app.test_client()
|
|
@ -0,0 +1,10 @@
|
|||
import pytest
|
||||
|
||||
# TODO: Possible functions/features to test:
|
||||
# - Search results (feature test)
|
||||
|
||||
# Test that the application can build and serve the home page
|
||||
# This is a very hacked together way to test this, may try to improve it at some point but for now it works
|
||||
def test_app_runs(client):
|
||||
res = client.get("/")
|
||||
assert b'Unofficial copyright search prototype' in res.data
|
Loading…
Reference in New Issue