diff --git a/tests/test_cli/test_package_manager/test_sync.py b/tests/test_cli/test_package_manager/test_sync.py index ef495c95d7..99d57f61f6 100644 --- a/tests/test_cli/test_package_manager/test_sync.py +++ b/tests/test_cli/test_package_manager/test_sync.py @@ -66,7 +66,9 @@ def test_sync_with_missing_dev_packages(self, ipfs_mock, hash_mock, caplog) -> N with mock.patch.object( PackageManagerV1, "dev_packages", new=packages - ), caplog.at_level(logging.INFO): + ), caplog.at_level(logging.INFO), mock.patch.object( + PackageManagerV1, "add_package" + ): result = self.run_cli_command("packages", "sync", "--dev") assert result.exit_code == 0 assert ( @@ -87,7 +89,9 @@ def test_sync_with_missing_third_party_packages( with mock.patch.object( PackageManagerV1, "third_party_packages", new=packages - ), caplog.at_level(logging.INFO): + ), caplog.at_level(logging.INFO), mock.patch.object( + PackageManagerV1, "add_package" + ): result = self.run_cli_command("packages", "sync") assert result.exit_code == 0 assert (