Skip to content

Commit c17df31

Browse files
committed
Replace 'on' with AC_ON
1 parent 699c11c commit c17df31

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/unit/webdriver/device/power_test.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import httpretty
2222

2323
from appium.webdriver.webdriver import WebDriver
24+
from appium.webdriver.extensions.power import Power
2425

2526

2627
class TestWebDriverPower(object):
@@ -44,7 +45,7 @@ def test_set_power_ac(self):
4445
httpretty.POST,
4546
appium_command('/session/1234567890/appium/device/power_ac'),
4647
)
47-
assert isinstance(driver.set_power_ac('on'), WebDriver) is True
48+
assert isinstance(driver.set_power_ac(Power.AC_ON), WebDriver) is True
4849

4950
d = get_httpretty_request_body(httpretty.last_request())
50-
assert d['state'] == 'on'
51+
assert d['state'] == Power.AC_ON

0 commit comments

Comments
 (0)