MCPcopy
hub / github.com/pallets/click / test_fast_edit

Function test_fast_edit

tests/test_termui.py:391–393  ·  view source on GitHub ↗
(runner)

Source from the content-addressed store, hash-verified

389
390@pytest.mark.skipif(platform.system() == "Windows", reason="No sed on Windows.")
391def test_fast_edit(runner):
392 result = click.edit("a\nb", editor="sed -i~ 's/$/Test/'")
393 assert result == "aTest\nbTest\n"
394
395
396@pytest.mark.skipif(platform.system() == "Windows", reason="No sed on Windows.")

Callers

nothing calls this directly

Calls 1

editMethod · 0.80

Tested by

no test coverage detected