mirror of
https://github.com/nvbn/thefuck.git
synced 2025-02-22 12:58:33 +00:00
another oopsie that was revealed in python3
This commit is contained in:
parent
8a2bc75e55
commit
cc1a69fb65
@ -50,8 +50,7 @@ def bin_might_exist(request):
|
|||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def patch_history(request):
|
def patch_history(request):
|
||||||
def side_effect(name):
|
def side_effect(name):
|
||||||
print("history('{}')".format(name))
|
return 2 if name == 'not-really-used' else 12
|
||||||
count = 2 if name == 'not-really-used' else 12
|
|
||||||
p = patch('thefuck.rules.no_command._count_history_uses',
|
p = patch('thefuck.rules.no_command._count_history_uses',
|
||||||
side_effect = side_effect)
|
side_effect = side_effect)
|
||||||
p.start()
|
p.start()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user