1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-20 20:09:07 +00:00

Fix tests

This commit is contained in:
nvbn 2015-04-21 06:36:51 +02:00
parent 8ed01fedbf
commit 3606131502

View File

@ -53,8 +53,8 @@ def test_get_command():
return_value=True):
Popen.return_value.stdout.read.return_value = b'stdout'
Popen.return_value.stderr.read.return_value = b'stderr'
assert main.get_command(Mock(), [b'thefuck', b'apt-get',
b'search', b'vim']) \
assert main.get_command(Mock(), ['thefuck', 'apt-get',
'search', 'vim']) \
== main.Command('apt-get search vim', 'stdout', 'stderr')
Popen.assert_called_once_with('apt-get search vim',
shell=True,