MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_feedback_to_output_true

Function test_feedback_to_output_true

tests/test_cmd2.py:730–741  ·  view source on GitHub ↗
(redirection_app)

Source from the content-addressed store, hash-verified

728
729
730def test_feedback_to_output_true(redirection_app) -> None:
731 redirection_app.feedback_to_output = True
732 f, filename = tempfile.mkstemp(prefix="cmd2_test", suffix=".txt")
733 os.close(f)
734
735 try:
736 run_cmd(redirection_app, f"print_feedback > {filename}")
737 with open(filename) as f:
738 content = f.read().splitlines()
739 assert "feedback" in content
740 finally:
741 os.remove(filename)
742
743
744def test_feedback_to_output_false(redirection_app) -> None:

Callers

nothing calls this directly

Calls 3

run_cmdFunction · 0.85
readMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…