mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-22 13:20:38 +08:00
fix by review
This commit is contained in:
@@ -234,12 +234,7 @@ class APITestCase(TestCase):
|
||||
status, _, _ = send_request(
|
||||
app,
|
||||
f"/api/studies/{study_id}/preference/{history_id}",
|
||||
"PUT",
|
||||
body=json.dumps(
|
||||
{
|
||||
"enable": False,
|
||||
}
|
||||
),
|
||||
"DELETE",
|
||||
content_type="application/json",
|
||||
)
|
||||
self.assertEqual(status, 204)
|
||||
@@ -251,12 +246,7 @@ class APITestCase(TestCase):
|
||||
status, _, _ = send_request(
|
||||
app,
|
||||
f"/api/studies/{study_id}/preference/{history_id}",
|
||||
"PUT",
|
||||
body=json.dumps(
|
||||
{
|
||||
"enable": True,
|
||||
}
|
||||
),
|
||||
"POST",
|
||||
content_type="application/json",
|
||||
)
|
||||
self.assertEqual(status, 204)
|
||||
|
||||
Reference in New Issue
Block a user