We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb089ba commit 95e4550Copy full SHA for 95e4550
test/unit/webdriver/device/network_test.py
@@ -43,22 +43,8 @@ def test_set_network_connection(self):
43
@httpretty.activate
44
def test_toggle_wifi(self):
45
driver = android_w3c_driver()
46
- httpretty.register_uri(
47
- httpretty.GET,
48
- appium_command('/session/1234567890/network_connection'),
49
- body='{"value": 0}'
50
- )
51
- assert driver.network_connection == 0
52
-
53
httpretty.register_uri(
54
httpretty.POST,
55
appium_command('/session/1234567890/appium/device/toggle_wifi'),
56
)
57
assert isinstance(driver.toggle_wifi(), WebDriver) is True
58
59
60
61
62
- body='{"value": 2}'
63
64
- assert driver.network_connection == 2
0 commit comments