Skip to content

Commit

Permalink
fix one test by specifying mock page url
Browse files Browse the repository at this point in the history
  • Loading branch information
snshn committed May 20, 2024
1 parent 5c4f1d4 commit 34be54c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async def test_sdk_save_data_calls_on_save_data_for_each_observer():
@pytest.mark.asyncio
async def test_sdk_enqueue_calls_on_enqueue_url_for_each_observer():
page = AsyncMock(spec=Page)
page.url = "https://example.net"
observer = AsyncMock(spec=OutputObserver)
sdk = SDK(page, observer=observer)
urls = ["https://example.org", "https://example.com"]
Expand Down

0 comments on commit 34be54c

Please sign in to comment.