mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +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)
|
@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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user