예제 #1
0
 def shell(self):
     return shells.Zsh()
예제 #2
0
 def test_to_shell(self):
     assert shells.Zsh().to_shell('pwd') == 'pwd'
예제 #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')
예제 #4
0
 def test_from_shell(self, before, after):
     assert shells.Zsh().from_shell(before) == after