def test_using_android(self, mocked_android): """Creates new Android remote driver instance""" BrowseTheWeb.using_android() mocked_android.assert_called_once_with( DEFAULT_APPIUM_HUB_URL, DEFAULT_ANDROID_CAPABILITIES )
def test_using_ios(self, mocked_remote): """Creates new IOS remote driver instance""" BrowseTheWeb.using_ios() mocked_remote.assert_called_once_with( DEFAULT_APPIUM_HUB_URL, DEFAULT_IOS_CAPABILITIES )
def fixture_actor() -> Generator: """Create the actor for our example tests!""" the_actor = Actor.named("Perry").who_can(BrowseTheWeb.using(Firefox())) yield the_actor the_actor.exit_stage_left()
def setUp(self): self.actor = AnActor.named("Perry").who_can(BrowseTheWeb.using(Firefox()))
def test_using_safari(self, mocked_safari): """Creates new Safari driver instance""" BrowseTheWeb.using_safari() mocked_safari.assert_called_once()
def test_using_chrome(self, mocked_chrome): """Creates new Chrome driver instance""" BrowseTheWeb.using_chrome() mocked_chrome.assert_called_once()
def test_using_firefox(self, mocked_firefox): """Creates new Firefox driver instance""" BrowseTheWeb.using_firefox() mocked_firefox.assert_called_once()
def test_can_be_instantiated(self): """Can be instantiated""" b = BrowseTheWeb.using(None) assert isinstance(b, BrowseTheWeb)