aboutsummaryrefslogtreecommitdiff
path: root/tests/qc/test_error_collection.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-01-02 09:30:57 +0300
committerFrederick Muriuki Muriithi2024-01-02 09:30:57 +0300
commitee0cf7de526849f228c73b744bf66d22c30b34de (patch)
tree97b2758adccae5bb3bc8e688d7d3b845d1a0ddb8 /tests/qc/test_error_collection.py
parentb3b9ba3b5b4e516d6220668155f9b5c57a51eb7d (diff)
downloadgn-uploader-ee0cf7de526849f228c73b744bf66d22c30b34de.tar.gz
Mark tests as unit tests.
Diffstat (limited to 'tests/qc/test_error_collection.py')
-rw-r--r--tests/qc/test_error_collection.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/qc/test_error_collection.py b/tests/qc/test_error_collection.py
index ee1e6c2..25f5d01 100644
--- a/tests/qc/test_error_collection.py
+++ b/tests/qc/test_error_collection.py
@@ -6,6 +6,7 @@ from quality_control.parsing import take, FileType, collect_errors
from quality_control.errors import (
InvalidValue, DuplicateHeading, InconsistentColumns)
+@pytest.mark.unit_test
@pytest.mark.parametrize(
"sample,num,expected",
((range(0,25), 5, [0, 1, 2, 3, 4]),
@@ -18,6 +19,7 @@ def test_take(sample, num, expected):
assert taken == expected
@pytest.mark.slow
+@pytest.mark.unit_test
@pytest.mark.parametrize(
"filepath,filetype,count",
(("tests/test_data/average_crlf.tsv", FileType.AVERAGE, 10),
@@ -36,6 +38,7 @@ def test_collect_errors(filepath, filetype, strains, count):
return isinstance(item, (InvalidValue, DuplicateHeading))
assert all(__valid_instance(error) for error in results)
+@pytest.mark.unit_test
@pytest.mark.parametrize(
"filepath,filetype,expected",
(("tests/test_data/average_inconsistent_columns.tsv", FileType.AVERAGE,