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

Class _bytes

tests/test_cmd.py:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
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 1

test_always_fail_decodeFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_always_fail_decodeFunction · 0.68