From 99f445b3f47c49bc1439a71c1641d793288f5482 Mon Sep 17 00:00:00 2001 From: angrybayblade Date: Fri, 6 Oct 2023 12:42:29 +0530 Subject: [PATCH] fix: sync tests --- tests/test_cli/test_package_manager/test_sync.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 (