Initial release: cd-browser v0.1.0
This commit is contained in:
18
tests/test_smoke.py
Normal file
18
tests/test_smoke.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from app.main import main
|
||||
|
||||
|
||||
def test_main_runs(
|
||||
monkeypatch: pytest.MonkeyPatch, capsys: pytest.CaptureFixture[str]
|
||||
) -> None:
|
||||
monkeypatch.setattr("app.main.run_cli", lambda: Path("/tmp/final"))
|
||||
|
||||
main()
|
||||
|
||||
captured = capsys.readouterr()
|
||||
|
||||
assert captured.out == "/tmp/final\n"
|
||||
assert captured.err == ""
|
||||
Reference in New Issue
Block a user