Skip to content
Prev Previous commit
Next Next commit
Replace assert_not_called() since it does not work
  • Loading branch information
dbeatty10 committed May 23, 2023
commit 732e69cd0917bc281713d0a1b922501e7a99c80c
4 changes: 2 additions & 2 deletions tests/functional/init/test_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ def test_init_provided_project_name_and_skip_profile_setup(

# provide project name through the init command
run_dbt(["init", project_name, "-s"])
manager.assert_not_called()
assert len(manager.mock_calls) == 0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed from assert_not_called() to asserting that manager.mock_calls is empty because the former didn't appear to ever fail when I tested it by hand, even when there were calls to the mocks.


with open(os.path.join(project.project_root, project_name, "dbt_project.yml"), "r") as f:
assert (
Expand Down Expand Up @@ -707,4 +707,4 @@ def test_init_inside_project_and_skip_profile_setup(

# skip interactive profile setup
run_dbt(["init", "-s"])
manager.assert_not_called()
assert len(manager.mock_calls) == 0