Ejemplo n.º 1
0
 def setUp(self):
     self.shell = Mock()
     self.shell = SmashTerminalInteractiveShell()
     # self.config = default_config()
     # self.shell.config = self.config
     self.plugin = SmashCompleter(self.shell)
     self.event = Mock()
Ejemplo n.º 2
0
class TestCompletion(TestCase):
    def setUp(self):
        self.shell = Mock()
        self.shell = SmashTerminalInteractiveShell()
        # self.config = default_config()
        # self.shell.config = self.config
        self.plugin = SmashCompleter(self.shell)
        self.event = Mock()

    def test_git(self):
        self.event.line = "git clo"
        self.event.text_until_cursor = "git clo"
        x = self.plugin.smash_matcher(self.shell, self.event)
        from smashlib import embed

        embed()