aboutsummaryrefslogtreecommitdiff
path: root/wqflask/tests/integration
diff options
context:
space:
mode:
authorBonfaceKilz2022-04-14 16:59:22 +0300
committerBonfaceKilz2022-04-14 17:02:11 +0300
commit06abb47b953ac6852cf9c18be91af94ab9c128ca (patch)
tree4b73b4c2b570e3ec72ae880a5fac3f80ad3e057a /wqflask/tests/integration
parent4bbbeb3f477c74cd84a4f4b5cabe3d05e743b510 (diff)
downloadgenenetwork2-06abb47b953ac6852cf9c18be91af94ab9c128ca.tar.gz
wqflask: Mock db connection when fetching case attributes
* wqflask/tests/integration/wqflask/test_metadata_edits.py (test_show_case_attributes): Mock "database_connection". Fixes this failing test: <https://ci.genenetwork.org/jobs/genenetwork2/223>
Diffstat (limited to 'wqflask/tests/integration')
-rw-r--r--wqflask/tests/integration/wqflask/test_metadata_edits.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/tests/integration/wqflask/test_metadata_edits.py b/wqflask/tests/integration/wqflask/test_metadata_edits.py
index 4b9e017d..1133be40 100644
--- a/wqflask/tests/integration/wqflask/test_metadata_edits.py
+++ b/wqflask/tests/integration/wqflask/test_metadata_edits.py
@@ -16,8 +16,9 @@ class MetadataEditsTest(unittest.TestCase):
def tearDown(self):
self.app_context.pop()
+ @mock.patch("wqflask.metadata_edits.database_connection")
@mock.patch("wqflask.metadata_edits.get_case_attributes")
- def test_show_case_attributes(self, mock_case_attrs):
+ def test_show_case_attributes(self, mock_case_attrs, mock_conn):
"""Test that case attributes are displayed correctly"""
mock_case_attrs.return_value = {
"Condition (1)": "",