aboutsummaryrefslogtreecommitdiff
path: root/tests/qc
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-04-20 13:40:05 +0300
committerFrederick Muriuki Muriithi2022-04-20 13:40:05 +0300
commit7cd50dbc6dc5c14bb211699e7a7103e4f1453edd (patch)
treefffd75cce2410ee7993d53a5447ef00e41b93165 /tests/qc
parent5897b6ec7fbd1226cd68a292122cc494e46f6829 (diff)
downloadgn-uploader-7cd50dbc6dc5c14bb211699e7a7103e4f1453edd.tar.gz
Update parameters for tests
Derive a "correct" sample file from an existing sample file with errors for testing with large files. Fix issue caught by test.
Diffstat (limited to 'tests/qc')
-rw-r--r--tests/qc/test_parsing.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/qc/test_parsing.py b/tests/qc/test_parsing.py
index 6c784d5..41739ad 100644
--- a/tests/qc/test_parsing.py
+++ b/tests/qc/test_parsing.py
@@ -22,25 +22,25 @@ def test_parse_file_fails_with_wrong_filetype_declaration(filepath, filetype, st
@pytest.mark.parametrize(
"filepath,filetype",
- (("tests/test_data/average_crlf.tsv", FileType.AVERAGE),
- ("tests/test_data/average.tsv", FileType.AVERAGE),
- ("tests/test_data/standarderror.tsv", FileType.STANDARD_ERROR)))
+ (("tests/test_data/no_data_errors.tsv", FileType.AVERAGE),))
def test_parse_file_passes_with_valid_files(filepath, filetype, strains):
"""Check that parsing succeeds with valid files"""
for line in parse_file(filepath, filetype, strains):
assert bool(line)
+@pytest.mark.slow
@pytest.mark.parametrize(
"filepath,filetype",
- (("tests/test_data/average_large.tsv", FileType.AVERAGE),
- ("tests/test_data/average.tsv", FileType.AVERAGE),
- ("tests/test_data/standarderror.tsv", FileType.STANDARD_ERROR)))
+ (("tests/test_data/average_large_no_errors.tsv", FileType.AVERAGE),
+ # ("tests/test_data/average_no_errors.tsv", FileType.AVERAGE),
+ # ("tests/test_data/standarderror_no_errors.tsv", FileType.STANDARD_ERROR),
+ ))
def test_parse_file_works_with_large_files(filepath, filetype, strains):
"""Check that parsing succeeds even with large files."""
for line in parse_file(filepath, filetype, strains):
assert bool(line)
-
+@pytest.mark.slow
@pytest.mark.parametrize(
"filepath,filetype",
(("tests/test_data/average_error_at_end_200MB.tsv", FileType.AVERAGE),