Skip to content

Commit

Permalink
add requested_by to mock_add_wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Jan 26, 2025
1 parent 875925e commit 7907acb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def test_add_requirement_query_url(mock_importlib, wheel_base, monkeypatch
pytest.importorskip("packaging")
from micropip.transaction import Transaction

async def mock_add_wheel(self, wheel, extras, *, specifier=""):
async def mock_add_wheel(self, wheel, extras, *, specifier="", requested_by=None):
self.mock_wheel = wheel

monkeypatch.setattr(Transaction, "add_wheel", mock_add_wheel)
Expand Down Expand Up @@ -336,7 +336,7 @@ async def test_index_url_priority(
# add_wheel is called only when the package is found in the index_urls
add_wheel_called = None

async def mock_add_wheel(self, wheel, extras, *, specifier=""):
async def mock_add_wheel(self, wheel, extras, *, specifier="", requested_by=None):
nonlocal add_wheel_called
add_wheel_called = wheel

Expand Down

0 comments on commit 7907acb

Please sign in to comment.