aboutsummaryrefslogtreecommitdiff
path: root/tests/qc_app
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-11-16 04:25:43 +0300
committerFrederick Muriuki Muriithi2022-11-16 04:25:43 +0300
commitee5c11fb5146ac1b18aa24ec4dd7a43aaf35033a (patch)
treeeeac2dbfd10f7cffe9f1b517f3d87d35cbe0d2d8 /tests/qc_app
parentd511e44b1a2b0e70236831926d86a10d589e9235 (diff)
downloadgn-uploader-ee5c11fb5146ac1b18aa24ec4dd7a43aaf35033a.tar.gz
tests: Fix some failing tests
Diffstat (limited to 'tests/qc_app')
-rw-r--r--tests/qc_app/test_parse.py5
-rw-r--r--tests/qc_app/test_progress_indication.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/qc_app/test_parse.py b/tests/qc_app/test_parse.py
index e608a03..f173e0a 100644
--- a/tests/qc_app/test_parse.py
+++ b/tests/qc_app/test_parse.py
@@ -1,6 +1,7 @@
"""Test the 'parse' module in the web-ui"""
-import redis
+import sys
+import redis
import pytest
from qc_app.jobs import job
@@ -36,7 +37,7 @@ def test_parse_with_existing_uploaded_file(
assert the_job["job_id"] == job_id
assert the_job["filename"] == filename
assert the_job["command"] == " ".join([
- "python3", "-m", "scripts.validate_file", filetype,
+ sys.executable, "-m", "scripts.validate_file", filetype,
f"{client.application.config['UPLOAD_FOLDER']}/{filename}", redis_url,
job_id])
diff --git a/tests/qc_app/test_progress_indication.py b/tests/qc_app/test_progress_indication.py
index 11a412e..8eba970 100644
--- a/tests/qc_app/test_progress_indication.py
+++ b/tests/qc_app/test_progress_indication.py
@@ -52,7 +52,7 @@ def test_with_in_progress_no_error_job(
(f'{job_id}').encode("utf8") +
b'" value="0.32242342">32.242342</progress>') in resp.data
assert (
- b'<span class="alert-success">No errors found so far</span>'
+ b'<span >No errors found so far</span>'
in resp.data)
assert b"<table" not in resp.data