Skip to content

Commit 95e4550

Browse files
committed
Removed unnecessary codes from toggle wifi test
1 parent eb089ba commit 95e4550

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/unit/webdriver/device/network_test.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,8 @@ def test_set_network_connection(self):
4343
@httpretty.activate
4444
def test_toggle_wifi(self):
4545
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-
5346
httpretty.register_uri(
5447
httpretty.POST,
5548
appium_command('/session/1234567890/appium/device/toggle_wifi'),
5649
)
5750
assert isinstance(driver.toggle_wifi(), WebDriver) is True
58-
59-
httpretty.register_uri(
60-
httpretty.GET,
61-
appium_command('/session/1234567890/network_connection'),
62-
body='{"value": 2}'
63-
)
64-
assert driver.network_connection == 2

0 commit comments

Comments
 (0)