def test_add_input_files_new(empty_state: State):
  """Test adding input files to an empty session state."""
  ctx = CodeExecutorContext(empty_state)
  new_files = [
      File(name="new.dat", content="Yg==", mime_type="application/octet-stream")
  ]
  ctx.add_input_files(new_files)
  assert empty_state["_code_executor_input_files"] == [{
      "name": "new.dat",
      "content": "Yg==",
      "mime_type": "application/octet-stream",
  }]
Test adding input files to an empty session state.
tests/unittests/code_executors/test_code_executor_context.py