aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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",