Skip to content

Commit

Permalink
Merge pull request #182 from dbt-labs/read-catalog-fix
Browse files Browse the repository at this point in the history
pass `--read-catalog` to both `group` subcommands
  • Loading branch information
dave-connors-3 authored Oct 9, 2023
2 parents 6ef6305 + 8edcc3d commit e1c65b9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions dbt_meshify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ def group(
]
),
project_path=project_path,
read_catalog=read_catalog,
)

return group_changes + contract_changes
24 changes: 24 additions & 0 deletions tests/integration/test_group_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,27 @@ def test_command_raises_exception_invalid_paths():

assert result.exit_code != 0
assert "does not contain a dbt project" in result.stdout


def test_read_catalog_group():
"""Verify that proving an invalid project path raises the correct error."""
setup_test_project(src_path_string, dest_path_string)
runner = CliRunner()
result = runner.invoke(
cli,
[
"group",
"test_group",
"--owner-name",
"Teenage Mutant Jinja Turtles",
"--select",
"foo",
"--project-path",
"tests",
"--read-catalog",
],
)

assert result.exit_code != 0
assert "dbt docs generate" not in result.stdout
teardown_test_project(dest_path_string)

0 comments on commit e1c65b9

Please sign in to comment.