#11 Fixed pep8 test failures
This commit is contained in:
parent
bcde471f33
commit
68f738a241
@ -41,6 +41,7 @@ def create_connection(path: str, filename: str):
|
|||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
run()
|
run()
|
||||||
|
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
""" Create the database for the application"""
|
""" Create the database for the application"""
|
||||||
dir = r"./data/"
|
dir = r"./data/"
|
||||||
|
@ -16,6 +16,7 @@ os.environ["ENVIRON"] = "test"
|
|||||||
|
|
||||||
run()
|
run()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def test_client() -> FlaskClient:
|
def test_client() -> FlaskClient:
|
||||||
""" Enables tests to create requests to the web app
|
""" Enables tests to create requests to the web app
|
||||||
|
@ -3,6 +3,7 @@ from bs4 import BeautifulSoup
|
|||||||
from tests import test_client
|
from tests import test_client
|
||||||
from flask.testing import FlaskClient
|
from flask.testing import FlaskClient
|
||||||
|
|
||||||
# def test_use_case(test_client: FlaskClient):
|
|
||||||
# response = test_client.get('/products/Car Parts')
|
def test_use_case(test_client: FlaskClient):
|
||||||
# assert response.status_code == 200
|
response = test_client.get('/products/Car Parts')
|
||||||
|
assert response.status_code == 200
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
# Ensure test environment is set before using
|
|
||||||
# Runs the database creation scripts
|
|
Loading…
Reference in New Issue
Block a user