diff options
author | BonfaceKilz | 2021-06-03 21:45:25 +0300 |
---|---|---|
committer | BonfaceKilz | 2021-06-03 21:58:31 +0300 |
commit | bef67489908e28c170e28cde637627c17a0d1db7 (patch) | |
tree | 1c1c6e321edda9aa1c8a8fcb8fe605f397182d35 /tests | |
parent | 9a07a39e943a406152b10eda984d5949223cef47 (diff) | |
download | genenetwork3-bef67489908e28c170e28cde637627c17a0d1db7.tar.gz |
Use prepared statements for FETCH sql function
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/db/test_phenotypes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/db/test_phenotypes.py b/tests/unit/db/test_phenotypes.py index 21eb757..824d186 100644 --- a/tests/unit/db/test_phenotypes.py +++ b/tests/unit/db/test_phenotypes.py @@ -61,7 +61,8 @@ class TestPhenotypes(TestCase): self.assertEqual(phenotype.pre_pub_description, "Test pre-publication") cursor.execute.assert_called_once_with( - "SELECT * FROM Phenotype WHERE id = '35' AND Owner = 'Rob'") + "SELECT * FROM Phenotype WHERE id = %s AND Owner = %s", + (35, 'Rob')) def test_diff_from_dict(self): """Test that a correct diff is generated""" |