mirror of https://github.com/eyhc1/rendercv.git
add UnicodeDecodeError tests for handle_exceptions
This commit is contained in:
parent
00054763fc
commit
c60c4f1c26
|
@ -141,7 +141,13 @@ def test_handle_validation_error(data_model_class, invalid_model):
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"exception",
|
"exception",
|
||||||
[ruamel.yaml.YAMLError, RuntimeError, FileNotFoundError, ValueError],
|
[
|
||||||
|
ruamel.yaml.YAMLError,
|
||||||
|
RuntimeError,
|
||||||
|
FileNotFoundError,
|
||||||
|
ValueError,
|
||||||
|
UnicodeDecodeError("utf-8", b"", 1, 2, "message"),
|
||||||
|
],
|
||||||
)
|
)
|
||||||
def test_handle_exceptions(exception):
|
def test_handle_exceptions(exception):
|
||||||
@cli.handle_exceptions
|
@cli.handle_exceptions
|
||||||
|
|
Loading…
Reference in New Issue