code: def test_publish_heroku_invalid_database(mock_which):
      mock_which.return_value = True
      runner = CliRunner()
      result = runner.invoke(cli.cli, ["publish", "heroku", "woop.db"])
      assert result.exit_code == 2
      assert "Path 'woop.db' does not exist" in result.output
  
file_path: datasette/tests/test_publish_heroku.py
imports: from click.testing import CliRunner
  from datasette import cli
  from unittest import mock
  import os
  import pathlib
  import pytest
label_desc: Use image node_id 3 for calling a global function with example usage: test_publish_heroku_invalid_database(mock_which) without return types