MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_get_eol_for_open

Function test_get_eol_for_open

tests/test_git.py:313–323  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

311
312@pytest.mark.usefixtures("tmp_commitizen_project")
313def 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
326def test_get_core_editor(monkeypatch: pytest.MonkeyPatch, util: UtilFixture):

Callers

nothing calls this directly

Calls 1

for_openMethod · 0.80

Tested by

no test coverage detected