def METHOD_NAME(self, tmp_path):
    query_file_path = tmp_path / "sql" / "test" / "query_v1"
    os.makedirs(query_file_path)
    query_file = query_file_path / "query.sql"
    query_file.write_text("-- comment \n SELECT 1")
    metadata_conf = {
        "friendly_name": "test",
        "description": "test",
        "owners": ["test@example.org"],
    }
    metadata_file = query_file_path / "metadata.yaml"
    metadata_file.write_text(yaml.dump(metadata_conf))
    runner = CliRunner()
    with patch("subprocess.check_call") as mock_call:
        mock_call.return_value = True
        result = runner.invoke(
            run,
            [str(query_file), "--dataset_id=test", "--destination_table=query_v1"],
        )
        assert result.exit_code == 0
        assert mock_call.call_args.args == (
            [
                "bq",
                "query",
                "--dataset_id=test",
                "--destination_table=query_v1",
            ],
        )
        assert "stdin" in mock_call.call_args.kwargs