15 lines
400 B
Python
15 lines
400 B
Python
from typer.testing import CliRunner
|
|
|
|
from pyxray.cli import app
|
|
|
|
|
|
def test_config_command_shows_core_config(tmp_path) -> None:
|
|
runner = CliRunner()
|
|
|
|
result = runner.invoke(app, ["config", "--workdir", str(tmp_path)])
|
|
|
|
assert result.exit_code == 0
|
|
assert "xray_url = " in result.output
|
|
assert "effective_xray_url:" not in result.output
|
|
assert (tmp_path / "core.toml").exists()
|