Skip to content

Commit

Permalink
fix: sync tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Oct 6, 2023
1 parent 8ce0f46 commit 99f445b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_cli/test_package_manager/test_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand All @@ -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 (
Expand Down

0 comments on commit 99f445b

Please sign in to comment.