mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 03:26:53 +00:00
check-json: resolve TODO
This commit is contained in:
parent
66250ba9bf
commit
c11c5483d6
2 changed files with 7 additions and 2 deletions
|
|
@ -17,3 +17,9 @@ def test_main(capsys, filename, expected_retval):
|
|||
if expected_retval == 1:
|
||||
stdout, _ = capsys.readouterr()
|
||||
assert filename in stdout
|
||||
|
||||
|
||||
def test_non_utf8_file(tmpdir):
|
||||
f = tmpdir.join('t.json')
|
||||
f.write_binary(b'\xa9\xfe\x12')
|
||||
assert main((str(f),))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue