()
| 548 | |
| 549 | |
| 550 | def test_editor_env_passed_through(): |
| 551 | with patch("subprocess.Popen") as mock_popen: |
| 552 | mock_popen.return_value.wait.return_value = 0 |
| 553 | Editor(editor="vi", env={"MY_VAR": "1"}).edit_files(["f.txt"]) |
| 554 | |
| 555 | env = mock_popen.call_args[1].get("env") |
| 556 | assert env is not None |
| 557 | assert env["MY_VAR"] == "1" |
| 558 | |
| 559 | |
| 560 | def test_editor_failure_exception(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…