()
| 134 | |
| 135 | @pytest.fixture |
| 136 | def persisted_hist(): |
| 137 | from cmd2.cmd2 import ( |
| 138 | History, |
| 139 | HistoryItem, |
| 140 | ) |
| 141 | from cmd2.parsing import ( |
| 142 | Statement, |
| 143 | ) |
| 144 | |
| 145 | h = History( |
| 146 | [ |
| 147 | HistoryItem(Statement("", raw="first")), |
| 148 | HistoryItem(Statement("", raw="second")), |
| 149 | HistoryItem(Statement("", raw="third")), |
| 150 | HistoryItem(Statement("", raw="fourth")), |
| 151 | ] |
| 152 | ) |
| 153 | h.start_session() |
| 154 | h.append(Statement("", raw="fifth")) |
| 155 | h.append(Statement("", raw="sixth")) |
| 156 | return h |
| 157 | |
| 158 | |
| 159 | def test_history_class_span(hist) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…