From ee0cf7de526849f228c73b744bf66d22c30b34de Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 2 Jan 2024 09:30:57 +0300 Subject: Mark tests as unit tests. --- tests/qc/test_error_collection.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/qc/test_error_collection.py') 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, -- cgit v1.2.3