def __init__(self, completer, ctx, shell): """Takes instance of xonsh.completer.Completer, the xonsh execution context, and the shell instance itself. """ self.completer = completer self.ctx = ctx self.shell = shell self.completer_gitsome = CompleterGitsome()
def __init__(self, completer, ctx): """Takes instance of xonsh.completer.Completer and dict with context.""" self.completer = completer self.completer_gitsome = CompleterGitsome() self.ctx = ctx
def setUp(self): self.completer = CompleterGitsome() self.completer_event = self.create_completer_event()