Exemplo n.º 1
0
 def shell(self):
     return shells.Zsh()
Exemplo n.º 2
0
 def test_to_shell(self):
     assert shells.Zsh().to_shell('pwd') == 'pwd'
Exemplo n.º 3
0
 def test_put_to_history(self, builtins_open, mocker):
     mocker.patch('thefuck.shells.time', return_value=1430707243.3517463)
     shells.Zsh().put_to_history('ls')
     builtins_open.return_value.__enter__.return_value. \
         write.assert_called_once_with(': 1430707243:0;ls\n')
Exemplo n.º 4
0
 def test_from_shell(self, before, after):
     assert shells.Zsh().from_shell(before) == after