class_docstr: Test Legacy Storage retrieve result mechanic separately
class_docstr_tok: ["Test","Legacy","Storage","retrieve","result","mechanic","separately"]
docstr: Successfully push a completed trial into database.
docstr_tok: ["Successfully","push","a","completed","trial","into","database","."]
code: def test_push_trial_results_unreserved(self, storage=None):
      """Successfully push a completed trial into database."""
      with OrionState(
          experiments=[], trials=[base_trial], storage=storage
      ) as cfg:
          storage = cfg.storage
          trial = storage.get_trial(Trial(**base_trial))
          results = [
              Trial.Result(name="loss", type="objective", value=2)
          ]
          trial.results = results
          with pytest.raises(FailedUpdate):
              storage.push_trial_results(trial)
  
file_path: orion/tests/unittests/storage/test_legacy.py
imports: import copy
  import logging
  import os
  import pytest
  from orion.core.io.database.pickleddb import PickledDB
  from orion.core.worker.trial import Trial
  from orion.storage.base import FailedUpdate
  from orion.storage.legacy import setup_database
  from orion.testing import OrionState
label_desc: Use image node_id 2 for calling the TestLegacyStorage obj's underlying member method code with example usage: obj.test_push_trial_results_unreserved(storage) without return types