about summary refs log tree commit diff
path: root/tests/unit/db/test_correlation.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-14 06:56:32 +0300
committerFrederick Muriuki Muriithi2022-02-17 06:37:30 +0300
commit74044f3c7985308b4996da3a52f91c5c20a19194 (patch)
treed86714b859b31cbbd1755522f8abd8eed16e321b /tests/unit/db/test_correlation.py
parent67f517aa0f44f55dc691ffd791bf22ef7af0b02c (diff)
downloadgenenetwork3-74044f3c7985308b4996da3a52f91c5c20a19194.tar.gz
Use pytest's "mark" feature to categorise tests
Use pytest's `mark` feature to explicitly categorise the tests and run them
per category
Diffstat (limited to 'tests/unit/db/test_correlation.py')
-rw-r--r--tests/unit/db/test_correlation.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/db/test_correlation.py b/tests/unit/db/test_correlation.py
index 3f940b2..5afe55f 100644
--- a/tests/unit/db/test_correlation.py
+++ b/tests/unit/db/test_correlation.py
@@ -4,6 +4,8 @@ Tests for the gn3.db.correlations module
 
 from unittest import TestCase
 
+import pytest
+
 from gn3.db.correlations import (
     build_query_sgo_lit_corr,
     build_query_tissue_corr)
@@ -12,6 +14,7 @@ class TestCorrelation(TestCase):
     """Test cases for correlation data fetching functions"""
     maxDiff = None
 
+    @pytest.mark.unit_test
     def test_build_query_sgo_lit_corr(self):
         """
         Test that the literature correlation query is built correctly.
@@ -53,6 +56,7 @@ class TestCorrelation(TestCase):
               "ORDER BY Probeset.Id"),
              2))
 
+    @pytest.mark.unit_test
     def test_build_query_tissue_corr(self):
         """
         Test that the tissue correlation query is built correctly.