diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/conftest.py | 4 | ||||
-rw-r--r-- | tests/qc_app/test_expression_data_pages.py | 1 | ||||
-rw-r--r-- | tests/qc_app/test_parse.py | 4 | ||||
-rw-r--r-- | tests/qc_app/test_results_page.py | 2 |
4 files changed, 5 insertions, 6 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index a39acf0..9012221 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -11,8 +11,8 @@ from redis import Redis from functional_tools import take -from qc_app import jobs, create_app -from qc_app.jobs import JOBS_PREFIX +from uploader import jobs, create_app +from uploader.jobs import JOBS_PREFIX from quality_control.errors import InvalidValue, DuplicateHeading diff --git a/tests/qc_app/test_expression_data_pages.py b/tests/qc_app/test_expression_data_pages.py index 6e073fb..c2f7de1 100644 --- a/tests/qc_app/test_expression_data_pages.py +++ b/tests/qc_app/test_expression_data_pages.py @@ -42,7 +42,6 @@ def test_post_notifies_errors_if_no_data_is_provided(client): assert redirect.status_code == 302 assert redirect.location == "/upload" - assert response.status_code == 200 assert b'Invalid file type provided.' in response.data assert b'No file was uploaded.' in response.data diff --git a/tests/qc_app/test_parse.py b/tests/qc_app/test_parse.py index 3915a4d..076c47c 100644 --- a/tests/qc_app/test_parse.py +++ b/tests/qc_app/test_parse.py @@ -4,7 +4,7 @@ import sys import redis import pytest -from qc_app.jobs import job, jobsnamespace +from uploader.jobs import job, jobsnamespace from tests.conftest import uploadable_file_object @@ -24,7 +24,7 @@ def test_parse_with_existing_uploaded_file(#pylint: disable=[too-many-arguments] 1. the system redirects to the job/parse status page 2. the job is placed on redis for processing """ - monkeypatch.setattr("qc_app.jobs.uuid4", lambda : job_id) + monkeypatch.setattr("uploader.jobs.uuid4", lambda : job_id) # Upload a file speciesid = 1 filename = "no_data_errors.tsv" diff --git a/tests/qc_app/test_results_page.py b/tests/qc_app/test_results_page.py index bb596d7..8c8379f 100644 --- a/tests/qc_app/test_results_page.py +++ b/tests/qc_app/test_results_page.py @@ -56,7 +56,7 @@ def test_results_with_completed_job_some_errors( 1. the system redirects to the results page 2. the results page displays the errors found """ - resp = client.get(f"/parse/status/{job_id}", follow_redirects=True);import sys;print(resp.data, file=sys.stderr) + resp = client.get(f"/parse/status/{job_id}", follow_redirects=True) assert len(resp.history) == 1 assert ( b'<p class="alert-danger">We found the following errors</p>' |