Change remove_associated_artifact format: query param -> body param

This commit is contained in:
porink0424
2024-06-05 15:26:40 +09:00
parent 0de67317c1
commit e2995712bb
3 changed files with 10 additions and 8 deletions
+2 -2
View File
@@ -550,7 +550,7 @@ class APITestCase(TestCase):
app,
f"/api/studies/{study._study_id}",
"DELETE",
queries={"remove_associated_artifacts": "true"},
body=json.dumps({"remove_associated_artifacts": True}),
content_type="application/json",
)
self.assertEqual(status, 204)
@@ -586,7 +586,7 @@ class APITestCase(TestCase):
app,
f"/api/studies/{study._study_id}",
"DELETE",
queries={"remove_associated_artifacts": "false"},
body=json.dumps({"remove_associated_artifacts": False}),
content_type="application/json",
)
self.assertEqual(status, 204)