()
| 24 | |
| 25 | @pytest.fixture(scope='session', autouse=True) |
| 26 | def work_path(): |
| 27 | path = pathlib.Path("./tmp-ipython-pytest-profiledir") |
| 28 | os.environ["IPYTHONDIR"] = str(path.absolute()) |
| 29 | if path.exists(): |
| 30 | raise ValueError('IPython dir temporary path already exists ! Did previous test run exit successfully ?') |
| 31 | path.mkdir() |
| 32 | yield |
| 33 | shutil.rmtree(str(path.resolve())) |
| 34 | |
| 35 | |
| 36 | def nopage(strng, start=0, screen_lines=0, pager_cmd=None): |
nothing calls this directly
no outgoing calls
no test coverage detected