Skip to content

Commit

Permalink
fix: package manager tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Oct 6, 2023
1 parent d301cb7 commit 8ce0f46
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/test_package_manager/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"""Test package manager base."""


import logging
import re
from collections import OrderedDict
from pathlib import Path
Expand Down Expand Up @@ -93,6 +94,7 @@ def __init__(
self.path = path
self.packages = packages
self.config_loader = config_loader
self._logger = logging.getLogger()

@classmethod
def from_dir(
Expand Down
7 changes: 6 additions & 1 deletion tests/test_package_manager/test_v0.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ def test_sync(

with mock.patch.object(pm, "add_package") as update_patch:
pm.sync()
update_patch.assert_called_with(package_id=DUMMY_PACKAGE_ID)
update_patch.assert_called_with(
package_id=DUMMY_PACKAGE_ID.with_hash(
"bafybei0000000000000000000000000000000000000000000000000000"
),
with_dependencies=True,
)

with pytest.raises(
ValueError,
Expand Down

0 comments on commit 8ce0f46

Please sign in to comment.