Skip to content

Commit 43c8f14

Browse files
juliandescottespull[bot]
authored andcommitted
[wdspec] Add wdspec tests for unknown command error
Depends on D134247 Differential Revision: https://phabricator.services.mozilla.com/D134248 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1746595 gecko-commit: 37149f29af6d58d035bdc9d35bcf0c805ead5352 gecko-reviewers: webdriver-reviewers, whimboo
1 parent 04669d5 commit 43c8f14

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

webdriver/tests/bidi/errors/errors.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import pytest
2+
3+
from webdriver.bidi.error import UnknownCommandException
4+
5+
6+
@pytest.mark.asyncio
7+
@pytest.mark.parametrize("module_name, command_name", [
8+
("invalidmodule", "somecommand"),
9+
("session", "wrongcommand"),
10+
], ids=[
11+
'invalid module',
12+
'invalid command name',
13+
])
14+
async def test_unknown_command(bidi_session, send_blocking_command, module_name, command_name):
15+
with pytest.raises(UnknownCommandException):
16+
await send_blocking_command(f"{module_name}.{command_name}", {})

0 commit comments

Comments
 (0)