MCPcopy
hub / github.com/cookiecutter/cookiecutter / test_process_json_invalid_json

Function test_process_json_invalid_json

tests/test_read_user_dict.py:10–15  ·  view source on GitHub ↗

Test `process_json` for correct error on malformed input.

()

Source from the content-addressed store, hash-verified

8
9
10def test_process_json_invalid_json() -> None:
11 """Test `process_json` for correct error on malformed input."""
12 with pytest.raises(InvalidResponse) as exc_info:
13 process_json('nope]')
14
15 assert str(exc_info.value) == 'Unable to decode to JSON.'
16
17
18def test_process_json_non_dict() -> None:

Callers

nothing calls this directly

Calls 1

process_jsonFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…