#128 #69 add support of shell specific actions, add alias expansion for bash and zsh

This commit is contained in:
nvbn
2015-05-03 12:46:01 +02:00
parent 938f1df035
commit fcc2a1a40a
4 changed files with 141 additions and 2 deletions
+5
View File
@@ -50,6 +50,11 @@ class TestGetCommand(object):
monkeypatch.setattr('thefuck.main.os.environ', {})
monkeypatch.setattr('thefuck.main.wait_output', lambda *_: True)
@pytest.fixture(autouse=True)
def generic_shell(self, monkeypatch):
monkeypatch.setattr('thefuck.shells.from_shell', lambda x: x)
monkeypatch.setattr('thefuck.shells.to_shell', lambda x: x)
def test_get_command_calls(self, Popen):
assert main.get_command(Mock(), Mock(),
['thefuck', 'apt-get', 'search', 'vim']) \