From ee5c11fb5146ac1b18aa24ec4dd7a43aaf35033a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 16 Nov 2022 04:25:43 +0300 Subject: tests: Fix some failing tests --- tests/qc_app/test_parse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/qc_app/test_parse.py') 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]) -- cgit v1.2.3