MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / test_from_str_with_whitespace

Function test_from_str_with_whitespace

tests/test_exceptions.py:23–26  ·  view source on GitHub ↗

Test from_str with whitespace in enum names.

()

Source from the content-addressed store, hash-verified

21
22
23def test_from_str_with_whitespace():
24 """Test from_str with whitespace in enum names."""
25 assert ExitCode.from_str(" EXPECTED_EXIT ") == ExitCode.EXPECTED_EXIT
26 assert ExitCode.from_str("\tNO_COMMITIZEN_FOUND\t") == ExitCode.NO_COMMITIZEN_FOUND
27
28
29def test_from_str_with_invalid_values():

Callers

nothing calls this directly

Calls 1

from_strMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…