def METHOD_NAME(
    monkeypatch: pytest.MonkeyPatch,
    tmp_path: Path,
    dbt_project_dir: Path,
    use_dbt_project_package_data_dir: bool,
) -> None:
    monkeypatch.chdir(tmp_path)
    project_name = f"test_dagster_scaffold_runtime_manifest_{use_dbt_project_package_data_dir}"
    dagster_project_dir = tmp_path.joinpath(project_name)
    _assert_scaffold_invocation(
        project_name=project_name,
        dbt_project_dir=dbt_project_dir,
        dagster_project_dir=dagster_project_dir,
        use_dbt_project_package_data_dir=use_dbt_project_package_data_dir,
    )
    dbt_project_dir = _update_dbt_project_path(
        dbt_project_dir=dbt_project_dir,
        dagster_project_dir=dagster_project_dir,
        use_dbt_project_package_data_dir=use_dbt_project_package_data_dir,
    )
    monkeypatch.setenv("DAGSTER_DBT_PARSE_PROJECT_ON_LOAD", "1")
    monkeypatch.chdir(tmp_path)
    sys.path.append(os.fspath(tmp_path))
    _assert_scaffold_defs(project_name=project_name, dagster_project_dir=dagster_project_dir)