def test_context_click_a_point_with_offset(self, click, move): mock_desk = MagicMock() DesktopLibrary.context_click_a_point(mock_desk, x_offset=-400, y_offset=-400) move.assert_called_with(-400, -400) click.assert_called_with()
def test_context_click_a_point_with_offset(self): mock_desk = MagicMock() webdriver.Remote = WebdriverRemoteMock ActionChains.move_by_offset = MagicMock(return_value=True) DesktopLibrary.open_application(mock_desk, 'remote_url') DesktopLibrary.context_click_a_point(mock_desk, x_offset=-400, y_offset=-400)
def test_context_click_a_point(self): mock_desk = MagicMock() webdriver.Remote = WebdriverRemoteMock DesktopLibrary.open_application(mock_desk, 'remote_url') DesktopLibrary.context_click_a_point(mock_desk)
def test_context_click_a_point(self, click): mock_desk = MagicMock() DesktopLibrary.context_click_a_point(mock_desk) click.assert_called_with()