Move jedi parser cache tests to parso.

This commit is contained in:
Dave Halter
2017-05-19 15:04:28 -04:00
parent 3c2b10a2a0
commit 0f4b7db56a
2 changed files with 0 additions and 86 deletions

View File

@@ -9,7 +9,6 @@ from . import refactor
import jedi
from jedi.evaluate.analysis import Warning
from jedi import settings
def pytest_addoption(parser):
@@ -122,17 +121,6 @@ class StaticAnalysisCase(object):
return "<%s: %s>" % (self.__class__.__name__, os.path.basename(self._path))
@pytest.fixture()
def isolated_jedi_cache(monkeypatch, tmpdir):
"""
Set `jedi.settings.cache_directory` to a temporary directory during test.
Same as `clean_jedi_cache`, but create the temporary directory for
each test case (scope='function').
"""
monkeypatch.setattr(settings, 'cache_directory', str(tmpdir))
@pytest.fixture()
def cwd_tmpdir(monkeypatch, tmpdir):
with helpers.set_cwd(tmpdir.dirpath):