This commit is contained in:
Greg Gauthier 2020-10-10 15:43:20 +01:00
parent 33184761b6
commit 1e263f05ba
4 changed files with 4 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
**/.pytest_cache/ **/.pytest_cache/
**/__pycache__/
.idea/ .idea/
*.lock *.lock
*.iml *.iml

View File

@ -18,6 +18,7 @@ if [[ "$PY" = "python3 not found" ]];
fi fi
echo "PREPARING HOVERFLY INSTALLATION..." echo "PREPARING HOVERFLY INSTALLATION..."
# shellcheck disable=SC2039
if [[ "$HC" = "hoverctl not found" ]]; if [[ "$HC" = "hoverctl not found" ]];
then then
echo "HoverFly CLI binary not found. Attempting install now..." echo "HoverFly CLI binary not found. Attempting install now..."

View File

@ -1,3 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env sh
pipenv run python -m pytest tests/test_hov.py --verbose --show-capture=all pipenv run python3 app/simple.py
pipenv run python3 -m pytest tests/test_hov.py --verbose --show-capture=all

View File

@ -8,11 +8,6 @@ class TestUsingHoverpy:
root_url = "http://127.0.0.1:5000" 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): def teardown_class(self):
# deletes the captured sessions # deletes the captured sessions
os.remove("tests/test_version_call.db") os.remove("tests/test_version_call.db")