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