示例#1
0
    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
        )
示例#2
0
    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
        )
示例#3
0
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()))
示例#5
0
    def test_using_safari(self, mocked_safari):
        """Creates new Safari driver instance"""
        BrowseTheWeb.using_safari()

        mocked_safari.assert_called_once()
示例#6
0
    def test_using_chrome(self, mocked_chrome):
        """Creates new Chrome driver instance"""
        BrowseTheWeb.using_chrome()

        mocked_chrome.assert_called_once()
示例#7
0
    def test_using_firefox(self, mocked_firefox):
        """Creates new Firefox driver instance"""
        BrowseTheWeb.using_firefox()

        mocked_firefox.assert_called_once()
示例#8
0
    def test_can_be_instantiated(self):
        """Can be instantiated"""
        b = BrowseTheWeb.using(None)

        assert isinstance(b, BrowseTheWeb)