1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-05 18:31:10 +01:00

#707: Update tests

This commit is contained in:
Vladimir Iakovlev 2017-10-10 08:31:45 +02:00
parent d9fd5e8a6b
commit 1f8f3dd967

View File

@ -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):