From 1e263f05badb9646c8110635b440bd6cab73458a Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Sat, 10 Oct 2020 15:43:20 +0100 Subject: [PATCH] fixes --- .gitignore | 1 + install.sh | 1 + rundemo.sh | 3 ++- tests/test_hov.py | 5 ----- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index c358564..27821d2 100755 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ **/.pytest_cache/ +**/__pycache__/ .idea/ *.lock *.iml diff --git a/install.sh b/install.sh index b01763f..1dc218c 100755 --- a/install.sh +++ b/install.sh @@ -18,6 +18,7 @@ if [[ "$PY" = "python3 not found" ]]; fi echo "PREPARING HOVERFLY INSTALLATION..." +# shellcheck disable=SC2039 if [[ "$HC" = "hoverctl not found" ]]; then echo "HoverFly CLI binary not found. Attempting install now..." diff --git a/rundemo.sh b/rundemo.sh index 479aa50..ee84e2f 100755 --- a/rundemo.sh +++ b/rundemo.sh @@ -1,3 +1,4 @@ #!/usr/bin/env sh -pipenv run python -m pytest tests/test_hov.py --verbose --show-capture=all \ No newline at end of file +pipenv run python3 app/simple.py +pipenv run python3 -m pytest tests/test_hov.py --verbose --show-capture=all \ No newline at end of file diff --git a/tests/test_hov.py b/tests/test_hov.py index f552fcc..de75af7 100755 --- a/tests/test_hov.py +++ b/tests/test_hov.py @@ -8,11 +8,6 @@ class TestUsingHoverpy: root_url = "http://127.0.0.1:5000" - def setup_class(self): - # startup the simple server (only needed for this example) - # This will get destroyed automatically, when the tests end - Popen("sh pipenv run python app/simple.py", shell=True, stdout=PIPE, stderr=PIPE) - def teardown_class(self): # deletes the captured sessions os.remove("tests/test_version_call.db")