mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Add a way to cwd into a tmpdir.
This commit is contained in:
@@ -131,3 +131,9 @@ def isolated_jedi_cache(monkeypatch, tmpdir):
|
||||
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):
|
||||
yield tmpdir
|
||||
|
||||
Reference in New Issue
Block a user