xonsh/tests/test_history_dummy.py
Noorhteen Raja NJ 888cb819c9
history transfer (#4604)
* 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
2021-12-20 08:36:29 +05:30

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)