Skip to content

Commit e5eaab4

Browse files
committed
fix: add 'dbt' prefix to project-health command in tests
1 parent c4059c7 commit e5eaab4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/core/platform/dbt/test_cli.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def test_project_health_with_required_and_optional_args():
1212

1313
# Simulate command invocation
1414
result = runner.invoke(
15-
datapilot, ["project-health", "--manifest-path", manifest_path, "--catalog-path", catalog_path, "--config-path", config_path]
15+
datapilot, ["dbt", "project-health", "--manifest-path", manifest_path, "--catalog-path", catalog_path, "--config-path", config_path]
1616
)
1717

1818
assert result.exit_code == 0 # Ensure the command executed successfully
@@ -29,6 +29,7 @@ def test_project_health_with_only_required_arg():
2929
result = runner.invoke(
3030
datapilot,
3131
[
32+
"dbt",
3233
"project-health",
3334
"--manifest-path",
3435
manifest_path,
@@ -48,6 +49,7 @@ def test_project_health_with_only_required_arg_version1_6():
4849
result = runner.invoke(
4950
datapilot,
5051
[
52+
"dbt",
5153
"project-health",
5254
"--manifest-path",
5355
manifest_path,
@@ -67,6 +69,7 @@ def test_project_health_with_macro_args():
6769
result = runner.invoke(
6870
datapilot,
6971
[
72+
"dbt",
7073
"project-health",
7174
"--manifest-path",
7275
manifest_path,
@@ -83,6 +86,7 @@ def test_project_health_with_macro_args():
8386
result = runner.invoke(
8487
datapilot,
8588
[
89+
"dbt",
8690
"project-health",
8791
"--manifest-path",
8892
manifest_path,
@@ -102,7 +106,7 @@ def test_project_health_with_required_and_optional_args_v12():
102106

103107
# Simulate command invocation
104108
result = runner.invoke(
105-
datapilot, ["project-health", "--manifest-path", manifest_path, "--catalog-path", catalog_path, "--config-path", config_path]
109+
datapilot, ["dbt", "project-health", "--manifest-path", manifest_path, "--catalog-path", catalog_path, "--config-path", config_path]
106110
)
107111

108112
assert result.exit_code == 0 # Ensure the command executed successfully

0 commit comments

Comments
 (0)