mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-20 20:09:07 +00:00
Fix tests
This commit is contained in:
parent
8ed01fedbf
commit
3606131502
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user