diff options
author | Frederick Muriuki Muriithi | 2022-02-14 06:56:32 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-02-17 06:37:30 +0300 |
commit | 74044f3c7985308b4996da3a52f91c5c20a19194 (patch) | |
tree | d86714b859b31cbbd1755522f8abd8eed16e321b /tests/integration/test_wgcna.py | |
parent | 67f517aa0f44f55dc691ffd791bf22ef7af0b02c (diff) | |
download | genenetwork3-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/integration/test_wgcna.py')
-rw-r--r-- | tests/integration/test_wgcna.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/test_wgcna.py b/tests/integration/test_wgcna.py index 078449d..5880b40 100644 --- a/tests/integration/test_wgcna.py +++ b/tests/integration/test_wgcna.py @@ -3,6 +3,8 @@ from unittest import TestCase from unittest import mock +import pytest + from gn3.app import create_app @@ -12,6 +14,7 @@ class WgcnaIntegrationTest(TestCase): def setUp(self): self.app = create_app().test_client() + @pytest.mark.integration_test @mock.patch("gn3.api.wgcna.call_wgcna_script") def test_wgcna_endpoint(self, mock_wgcna_script): """test /api/wgcna/run_wgcna endpoint""" |