Skip to content

Commit 83eb660

Browse files
committed
test: update cookie tests to assert any call for StorageCommands
1 parent 553c744 commit 83eb660

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_browser_page.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,12 @@ async def test_get_cookies(page):
8484
async def test_set_cookies(page):
8585
test_cookies = [{'name': 'test', 'value': 'value'}]
8686
await page.set_cookies(test_cookies)
87-
page._connection_handler.execute_command.assert_called_once_with(
87+
page._connection_handler.execute_command.assert_any_call(
8888
NetworkCommands.set_cookies(test_cookies), timeout=60
8989
)
90+
page._connection_handler.execute_command.assert_any_call(
91+
StorageCommands.set_cookies(test_cookies), timeout=60
92+
)
9093

9194

9295
@pytest.mark.asyncio

0 commit comments

Comments
 (0)