mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00

* refactor: update `history gc` cli usage * feat: added `history transfer` command cli-utils now provides hook to parser.add_argument call * test: test refactor * docs: * fix: mypy error * fix: remove debug line
12 lines
386 B
Python
12 lines
386 B
Python
"""Tests the dummy history backend."""
|
|
|
|
import pytest
|
|
|
|
from xonsh.history.dummy import DummyHistory
|
|
from xonsh.history.main import construct_history
|
|
|
|
|
|
@pytest.mark.parametrize("backend", ["dummy", DummyHistory, DummyHistory()])
|
|
def test_construct_history_str(xession, backend):
|
|
xession.env["XONSH_HISTORY_BACKEND"] = backend
|
|
assert isinstance(construct_history(), DummyHistory)
|