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

Method decode

tests/test_cmd.py:51–54  ·  view source on GitHub ↗
(self, encoding="utf-8", errors="strict")

Source from the content-addressed store, hash-verified

49def test_always_fail_decode():
50 class _bytes(bytes):
51 def decode(self, encoding="utf-8", errors="strict"):
52 raise UnicodeDecodeError(
53 encoding, self, 0, 0, "Failing intentionally for testing"
54 )
55
56 with pytest.raises(CharacterSetDecodeError):
57 cmd._try_decode(_bytes())

Callers 2

_export_cmd_as_svgFunction · 0.80
_try_decodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected