code: def test_edit_with_missing_editor(self):
      def go(check_call, exists):
          test_environ = {}
          exists.return_value = False
          with expect_raises_message(util.CommandError, "EDITOR"):
              util.open_in_editor("myfile", test_environ)
  
      self.common(go)
  
file_path: alembic/tests/test_editor.py
imports: import os
  from os.path import join
  from unittest.mock import patch
  from alembic import util
  from alembic.testing import combinations
  from alembic.testing import expect_raises_message
  from alembic.testing.fixtures import TestBase
label_desc: Use image node_id 8 for calling the TestHelpers obj's underlying member method code with example usage: obj.test_edit_with_missing_editor() without return types