aboutsummaryrefslogtreecommitdiff
path: root/tests/qc_app/test_parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/qc_app/test_parse.py')
-rw-r--r--tests/qc_app/test_parse.py19
1 files changed, 7 insertions, 12 deletions
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'<span class="alert alert-error">Selected file does not exist '
- b'(any longer)</span>')]),
+ [b'Selected file does not exist (any longer)']),
("non_existent.file",
"/parse/parse?filename=non_existent.file&filename=standard-error",
- [(b'<span class="alert alert-error">Selected file does not exist '
- b'(any longer)</span>')]),
+ [b'Selected file does not exist (any longer)']),
("non_existent.file",
"/parse/parse?filename=non_existent.file&filename=percival",
- [(b'<span class="alert alert-error">Selected file does not exist '
- b'(any longer)</span>'),
- b'<span class="alert alert-error">Invalid filetype provided</span>']),
+ [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'<span class="alert alert-error">Invalid filetype provided</span>']),
+ [b'Invalid filetype provided']),
("no_data_errors.tsv",
"/parse/parse?filename=no_data_errors.tsv",
- [b'<span class="alert alert-error">No filetype provided</span>']),
- (None, "/parse/parse",
- [b'<span class="alert alert-error">No file provided</span>',
- b'<span class="alert alert-error">No filetype provided</span>'])))
+ [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