| 311 | |
| 312 | @pytest.mark.usefixtures("tmp_commitizen_project") |
| 313 | def test_get_eol_for_open(): |
| 314 | assert git.EOLType.for_open() == os.linesep |
| 315 | |
| 316 | cmd.run(["git", "config", "core.eol", "lf"]) |
| 317 | assert git.EOLType.for_open() == "\n" |
| 318 | |
| 319 | cmd.run(["git", "config", "core.eol", "crlf"]) |
| 320 | assert git.EOLType.for_open() == "\r\n" |
| 321 | |
| 322 | cmd.run(["git", "config", "core.eol", "native"]) |
| 323 | assert git.EOLType.for_open() == os.linesep |
| 324 | |
| 325 | |
| 326 | def test_get_core_editor(monkeypatch: pytest.MonkeyPatch, util: UtilFixture): |