Skip to content

Commit 7331c0e

Browse files
committed
fix: set returncode=0 in cli integration test mock
The mock was missing an explicit returncode, so it defaulted to a MagicMock object which != 0, causing the failure path to be taken.
1 parent 4793f42 commit 7331c0e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/unit/dbt_cli/test_cli_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def test_dbt_command_execution(self, mock_popen):
1515
"""
1616
# Mock setup
1717
mock_process = MagicMock()
18+
mock_process.returncode = 0
1819
mock_process.communicate.return_value = ("command output", None)
1920
mock_popen.return_value = mock_process
2021

0 commit comments

Comments
 (0)