mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
test: add back xonfig-info test
This commit is contained in:
parent
fcf6f37d5b
commit
284f794132
1 changed files with 21 additions and 0 deletions
|
@ -90,3 +90,24 @@ class TestXonfigWeb:
|
|||
def test_prompts_get(self, get_req):
|
||||
_, _, resp = get_req("/prompts")
|
||||
assert "Prompts" in resp
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"args",
|
||||
[
|
||||
([]),
|
||||
(
|
||||
[
|
||||
"info",
|
||||
]
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_xonfig_info(args, xession):
|
||||
"""info works, and reports no jupyter if none in environment"""
|
||||
capout = xonfig_main(args)
|
||||
assert capout.startswith("+---")
|
||||
assert capout.endswith("---+\n")
|
||||
pat = re.compile(r".*history backend\s+\|\s+", re.MULTILINE | re.IGNORECASE)
|
||||
m = pat.search(capout)
|
||||
assert m
|
||||
|
|
Loading…
Add table
Reference in a new issue