def test_using_mobile_app(driver_mock, platform_name): driver_mock.desired_capabilities["app"] = "some_app" driver_mock.desired_capabilities["platformName"] = platform_name assert eyes_selenium_utils.is_mobile_app(driver_mock) assert not eyes_selenium_utils.is_mobile_web(driver_mock)
def test_different_not_mobile_platform_names(driver_mock, platform_name): driver_mock.desired_capabilities["platformName"] = platform_name driver_mock.desired_capabilities["browserName"] = "someBrowser" assert not eyes_selenium_utils.is_mobile_web(driver_mock) assert not eyes_selenium_utils.is_mobile_app(driver_mock) assert not eyes_selenium_utils.is_mobile_platform(driver_mock)