1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-09-18 19:22:32 +01:00

#N/A Add ability to disable memoization in tests

This commit is contained in:
nvbn
2015-07-10 17:06:05 +03:00
parent 4b4e7acc0f
commit f40b63f44b
3 changed files with 17 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
import pytest
from thefuck import types
from thefuck.conf import DEFAULT_PRIORITY
@@ -14,3 +15,7 @@ def Rule(name='', match=lambda *_: True,
return types.Rule(name, match, get_new_command,
enabled_by_default, side_effect,
priority)
@pytest.fixture
def no_memoize(monkeypatch):
monkeypatch.setattr('thefuck.utils.memoize.disabled', True)