From 619bf2e80dd6c225a4121507f0b9374598b94ea6 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 8 Apr 2024 10:32:10 +0300 Subject: Fix issues caught by integration tests. --- tests/qc_app/test_parse.py | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 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 5e55688..187af76 100644 --- a/tests/qc_app/test_parse.py +++ b/tests/qc_app/test_parse.py @@ -55,26 +55,21 @@ def test_parse_with_existing_uploaded_file(#pylint: disable=[too-many-arguments] "filename,uri,error_msgs", (("non_existent.file", "/parse/parse?filename=non_existent.file&filename=average", - [(b'Selected file does not exist ' - b'(any longer)')]), + [b'Selected file does not exist (any longer)']), ("non_existent.file", "/parse/parse?filename=non_existent.file&filename=standard-error", - [(b'Selected file does not exist ' - b'(any longer)')]), + [b'Selected file does not exist (any longer)']), ("non_existent.file", "/parse/parse?filename=non_existent.file&filename=percival", - [(b'Selected file does not exist ' - b'(any longer)'), - b'Invalid filetype provided']), + [b'Selected file does not exist (any longer)', + b'Invalid filetype provided']), ("no_data_errors.tsv", "/parse/parse?filename=no_data_errors.tsv&filename=percival", - [b'Invalid filetype provided']), + [b'Invalid filetype provided']), ("no_data_errors.tsv", "/parse/parse?filename=no_data_errors.tsv", - [b'No filetype provided']), - (None, "/parse/parse", - [b'No file provided', - b'No filetype provided']))) + [b'No filetype provided']), + (None, "/parse/parse", [b'No file provided', b'No filetype provided']))) def test_parse_with_non_uploaded_file(client, filename, uri, error_msgs): """ GIVEN: 1. A flask application testing client -- cgit v1.2.3