MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / hist_file

Function hist_file

tests/test_history.py:864–870  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

862#
863@pytest.fixture(scope="session")
864def hist_file():
865 fd, filename = tempfile.mkstemp(prefix="hist_file", suffix=".dat")
866 os.close(fd)
867 yield filename
868 # teardown code
869 with contextlib.suppress(FileNotFoundError):
870 os.remove(filename)
871
872
873def test_history_file_is_directory(capsys) -> None:

Callers

nothing calls this directly

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…