mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-09-09 11:28:14 +08:00
Apply black to test_api
This commit is contained in:
@@ -263,9 +263,7 @@ class APITestCase(TestCase):
|
||||
self.assertEqual(status, 400)
|
||||
assert study.trials[0].user_attrs == {}
|
||||
|
||||
def _save_trial_note(
|
||||
self, request_body: dict[str, int | str]
|
||||
) -> tuple[int, optuna.Study]:
|
||||
def _save_trial_note(self, request_body: dict[str, int | str]) -> tuple[int, optuna.Study]:
|
||||
study = optuna.create_study()
|
||||
trial = study.ask()
|
||||
app = create_app(study._storage)
|
||||
|
||||
Reference in New Issue
Block a user