@pytest.fixture()
def isolated_jedi_cache(monkeypatch, tmpdir):
 monkeypatch.setattr(settings, 'cache_directory', str(tmpdir))

@ pytest . fixture ( ) def isolated_jedi_cache ( monkeypatch , tmpdir ) : monkeypatch . setattr ( settings , 'cache_directory' , str ( tmpdir ) )
set jedi .