(driver_func)
| 78 | @pytest.mark.parametrize('driver_func', [android_w3c_driver, ios_w3c_driver]) |
| 79 | @httpretty.activate |
| 80 | def test_activate_app(driver_func): |
| 81 | driver = driver_func() |
| 82 | httpretty.register_uri(httpretty.POST, appium_command('/session/1234567890/execute/sync'), body='{"value": ""}') |
| 83 | result = driver.activate_app('com.app.id') |
| 84 | |
| 85 | assert { |
| 86 | 'args': [{'appId': 'com.app.id', 'bundleId': 'com.app.id'}], |
| 87 | 'script': 'mobile: activateApp', |
| 88 | } == get_httpretty_request_body(httpretty.last_request()) |
| 89 | assert isinstance(result, WebDriver) |
| 90 | |
| 91 | |
| 92 | @pytest.mark.parametrize('driver_func', [android_w3c_driver, ios_w3c_driver]) |
nothing calls this directly
no test coverage detected