def robot_Remote(request): """Creates a ``TestRobot`` instance loading ``Remote`` library, which automatically connects to the external ``RemoteRobot`` instance created in ``process`` fixture. """ # make 3 connection attempts before bailing out for _ in range(3): try: # BuiltIn will also be served by RemoteRobot robot = TestRobot('Test', BuiltIn=False) robot.Import('Remote') return robot except DataError: continue raise
def robot(request, stdlibname): robot = TestRobot('Test') robot.Import(stdlibname) return robot
def robot_no_BuiltIn(request, stdlibname): robot = TestRobot('Test', BuiltIn=False) robot.Import(stdlibname) return robot
def test_ImportRemoteLibrary(self, process, robot_Remote): assert not hasattr(robot_Remote, 'CopyList') robot_Remote.ImportRemoteLibrary('Collections') robot = TestRobot('New') robot.Import('Remote') assert robot.CopyList