()
| 53 | |
| 54 | |
| 55 | def test_same_file(): |
| 56 | with pytest.raises(subprocess.CalledProcessError) as exception: |
| 57 | get_command_output(["ftfy", TEST_FILENAME, "-o", TEST_FILENAME]) |
| 58 | error = exception.value.output.decode("utf-8") |
| 59 | assert error.startswith("ftfy error:") |
| 60 | assert "Can't read and write the same file" in error |
| 61 | |
| 62 | |
| 63 | def test_stdin(): |
nothing calls this directly
no test coverage detected