Skip to content
Myr

:white_check_mark: Update completion tests, checking for printed message

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sebastián Ramírez · committed by Sebastián Ramírez · parent cde63b0 · Browse files · 1 file+3 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−1 removed

  • tests:+3 added−1 removed

1 file+3 added−1 removed

modified:tests/test_completion.py+3 added-1 removed
43 unmodified lines
44 encoding="utf-8",45 env={**os.environ, "SHELL": "/bin/bash"},46 )47 new_text = bash_completion_path.read_text()48 assert "_TUTORIAL001.PY_COMPLETE=complete-bash" in new_text48 bash_completion_path.write_text(text)49 assert "_TUTORIAL001.PY_COMPLETE=complete-bash" in new_text50 assert "completion installed in" in result.stdout51 assert "Completion will take effect once you restart the terminal." in result.stdout