mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
#707: Update tests
This commit is contained in:
parent
d9fd5e8a6b
commit
1f8f3dd967
@ -149,11 +149,11 @@ class TestCache(object):
|
||||
@pytest.fixture(autouse=True)
|
||||
def enable_cache(self, monkeypatch, shelve):
|
||||
monkeypatch.setattr('thefuck.utils.cache.disabled', False)
|
||||
_cache._init_db()
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def mtime(self, mocker):
|
||||
mocker.patch('thefuck.utils.os.path.getmtime', return_value=0)
|
||||
_cache._init_db()
|
||||
|
||||
@pytest.fixture
|
||||
def fn(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user