text: import os
  import subprocess
  
  import typer
  from typer.testing import CliRunner
  
  from options.autocompletion import tutorial007 as mod
  
  runner = CliRunner()
  
  app = typer.Typer()
  app.command()(mod.main)
  
  
  def test_completion():
      result = subprocess.run(
          ["coverage", "run", mod.__file__, " "],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          encoding="utf-8",
          env={
              **os.environ,
              "_TUTORIAL007.PY_COMPLETE": "complete_zsh",
              "_TYPER_COMPLETE_ARGS": "tutorial007.py --name Sebastian --name ",
              "_TYPER_COMPLETE_TESTING": "True",
          },
      )
      assert '"Camila":"The reader of books."' in result.stdout
      assert '"Carlos":"The writer of scripts."' in result.stdout
      assert '"Sebastian":"The type hints guy."' not in result.stdout
  
  
  def test_1():
      result = runner.invoke(app, ["--name", "Camila", "--name", "Sebastian"])
      assert result.exit_code == 0
      assert "Hello Camila" in result.output
      assert "Hello Sebastian" in result.output
  
  
  def test_script():
      result = subprocess.run(
          ["coverage", "run", mod.__file__, "--help"],
          stdout=subprocess.PIPE,
          stderr=subprocess.PIPE,
          encoding="utf-8",
      )
      assert "Usage" in result.stdout
  