code: def test_datasette_error_if_string_not_list(tmpdir):
      # https://github.com/simonw/datasette/issues/1985
      db_path = str(tmpdir / "data.db")
      with pytest.raises(ValueError):
          ds = Datasette(db_path)
  
file_path: datasette/tests/test_internals_datasette.py
imports: import dataclasses
  from datasette import Forbidden, Context
  from datasette.app import Datasette, Database
  from itsdangerous import BadSignature
  import pytest
  from typing import Optional
label_desc: Use image node_id 6 for calling a global function with example usage: test_datasette_error_if_string_not_list(tmpdir) without return types