Skip to content

Commit 9e18dfc

Browse files
manoj9788KazuCocoa
authored andcommitted
test: add unit test unlock (#450)
1 parent ed0efd1 commit 9e18dfc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/webdriver/device/lock_test.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import httpretty
1616

17+
from appium.webdriver.webdriver import WebDriver
1718
from test.unit.helper.test_helper import (
1819
android_w3c_driver,
1920
appium_command,
@@ -69,3 +70,12 @@ def test_islocked_true(self):
6970
)
7071

7172
assert driver.is_locked() is True
73+
74+
@httpretty.activate
75+
def test_unlock(self):
76+
driver = android_w3c_driver()
77+
httpretty.register_uri(
78+
httpretty.POST,
79+
appium_command('/session/1234567890/appium/device/unlock'),
80+
)
81+
assert isinstance(driver.unlock(), WebDriver)

0 commit comments

Comments
 (0)