Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions cosmos/dbt/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@ def load(
if self.project.is_manifest_available():
self.load_from_dbt_manifest()
return
elif (
execution_mode in (ExecutionMode.LOCAL, ExecutionMode.VIRTUALENV)
and self.project.is_profile_yml_available()
):
elif execution_mode == ExecutionMode.LOCAL and self.project.is_profile_yml_available():
try:
self.load_via_dbt_ls()
return
Expand Down
2 changes: 1 addition & 1 deletion tests/dbt/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_load_manifest_with_manifest(mock_load_from_dbt_manifest):
"exec_mode,method,expected_function",
[
(ExecutionMode.LOCAL, LoadMode.AUTOMATIC, "mock_load_via_dbt_ls"),
(ExecutionMode.VIRTUALENV, LoadMode.AUTOMATIC, "mock_load_via_dbt_ls"),
(ExecutionMode.VIRTUALENV, LoadMode.AUTOMATIC, "mock_load_via_custom_parser"),
(ExecutionMode.KUBERNETES, LoadMode.AUTOMATIC, "mock_load_via_custom_parser"),
(ExecutionMode.DOCKER, LoadMode.AUTOMATIC, "mock_load_via_custom_parser"),
(ExecutionMode.LOCAL, LoadMode.DBT_LS, "mock_load_via_dbt_ls"),
Expand Down