Skip to content

Commit

Permalink
update the fixture
Browse files Browse the repository at this point in the history
Signed-off-by: Nok <nok.lam.chan@quantumblack.com>
  • Loading branch information
noklam committed Jul 25, 2023
1 parent 51986d5 commit 0a11440
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/framework/cli/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ def entry_point(mocker, entry_points):

@fixture(scope="module")
def fake_root_dir(tmp_path_factory):
return tmp_path_factory.getbasetemp()
# using tempfile as tmp_path fixture doesn't support module scope
# tmpdir = tempfile.mkdtemp()
# try:
# yield Path(tmpdir).resolve()
# finally:
# shutil.rmtree(tmpdir, ignore_errors=True)
return tmp_path_factory.mktemp("cli_tests")


@fixture(scope="module")
Expand Down

0 comments on commit 0a11440

Please sign in to comment.