aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-09-05 14:39:38 +0300
committerBonfaceKilz2023-09-05 14:57:51 +0300
commit259aec828fa3908eed62db9530db7d9efd72f136 (patch)
tree4308d35db61b6044b0d5da7b9c969f6c886cbf56 /tests
parentb1916a0c0f2656847f07a174f8e8f8a863f4d282 (diff)
downloadgenenetwork3-259aec828fa3908eed62db9530db7d9efd72f136.tar.gz
Remove un-necessary string concatenation
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/test_gemma.py2
-rw-r--r--tests/unit/db/test_case_attributes.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/integration/test_gemma.py b/tests/integration/test_gemma.py
index d8c07f4..79ddaca 100644
--- a/tests/integration/test_gemma.py
+++ b/tests/integration/test_gemma.py
@@ -382,7 +382,7 @@ class GemmaAPITest(unittest.TestCase):
"snps": "snpfile.txt",
}
mock_hash.return_value = "hash"
- response = self.app.post(("/api/gemma/k-gwa-compute/" "my-token"))
+ response = self.app.post(("/api/gemma/k-gwa-compute/my-token"))
mock_hash.assert_called_with([
('/tmp/cache/QmQPeNsJPyVWPFDVHb77w8G42Fvo15z4bG2X8D2GhfbSXc/'
'genotype.txt'), '/tmp/my-token/phenofile.txt',
diff --git a/tests/unit/db/test_case_attributes.py b/tests/unit/db/test_case_attributes.py
index 175249b..97a0703 100644
--- a/tests/unit/db/test_case_attributes.py
+++ b/tests/unit/db/test_case_attributes.py
@@ -140,7 +140,7 @@ def test_approve_deleting_case_attribute(mocker: MockFixture) -> None:
"WHERE id = %s",
(3,),
),
- mocker.call("DELETE FROM CaseAttribute " "WHERE Id = %s", ("12",)),
+ mocker.call("DELETE FROM CaseAttribute WHERE Id = %s", ("12",)),
mocker.call(
"UPDATE caseattributes_audit SET "
"status = 'approved' WHERE id = %s",
@@ -183,14 +183,14 @@ def test_approve_modifying_case_attribute(mocker: MockFixture) -> None:
(3,),
),
mocker.call(
- "UPDATE CaseAttribute SET " "Description = %s WHERE Id = %s",
+ "UPDATE CaseAttribute SET Description = %s WHERE Id = %s",
(
"Test",
"12",
),
),
mocker.call(
- "UPDATE CaseAttribute SET " "Name = %s WHERE Id = %s",
+ "UPDATE CaseAttribute SET Name = %s WHERE Id = %s",
(
"Height (A)",
"12",