1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-02-22 21:08:48 +00:00
thefuck/tests/conftest.py

18 lines
347 B
Python
Raw Normal View History

2015-07-10 17:58:41 +03:00
import pytest
from mock import Mock
2015-07-10 17:58:41 +03:00
@pytest.fixture
def no_memoize(monkeypatch):
monkeypatch.setattr('thefuck.utils.memoize.disabled', True)
@pytest.fixture
def settings():
return Mock(debug=False, no_colors=True)
2015-09-02 11:10:03 +03:00
@pytest.fixture(autouse=True)
def no_cache(monkeypatch):
monkeypatch.setattr('thefuck.utils.cache.disabled', True)