diff --git a/tests/e2e/test_repl.py b/tests/e2e/test_repl.py new file mode 100644 index 0000000..7357916 --- /dev/null +++ b/tests/e2e/test_repl.py @@ -0,0 +1,16 @@ +from .runner import BinaryRunner + + +def test_repl(runner: BinaryRunner) -> None: + """REPL starts, handles shell commands, and dispatches /command syntax.""" + result = runner.run( + [], + stdin_text="echo hello_repl_test\n/version\n/exit\n", + timeout=30, + ) + result.assert_success() + result.assert_stdout_contains("Welcome to the Git-Mastery REPL!") + result.assert_stdout_matches(r"gitmastery \[.+\]>") + result.assert_stdout_contains("hello_repl_test") + result.assert_stdout_contains("Git-Mastery app is") + result.assert_stdout_matches(r"v\d+\.\d+\.\d+")