MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / hist

Function hist

tests/test_history.py:58–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56#
57@pytest.fixture
58def hist():
59 from cmd2.cmd2 import (
60 History,
61 HistoryItem,
62 )
63 from cmd2.parsing import (
64 Statement,
65 )
66
67 return History(
68 [
69 HistoryItem(Statement("", raw="first")),
70 HistoryItem(Statement("", raw="second")),
71 HistoryItem(Statement("", raw="third")),
72 HistoryItem(Statement("", raw="fourth")),
73 ]
74 )
75
76
77# Represents the hist fixture's JSON

Callers

nothing calls this directly

Calls 3

HistoryClass · 0.90
HistoryItemClass · 0.90
StatementClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…