Skip to content

Commit

Permalink
Add test for json containing duplicate key
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhursale committed Feb 16, 2021
1 parent cd80572 commit f9d1b69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions testing/resources/duplicate_key_json.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"hello": "world",
"hello": "planet"
}
1 change: 1 addition & 0 deletions tests/check_json_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
('bad_json.notjson', 1),
('bad_json_latin1.nonjson', 1),
('ok_json.json', 0),
('duplicate_key_json.json', 1)
),
)
def test_main(capsys, filename, expected_retval):
Expand Down

0 comments on commit f9d1b69

Please sign in to comment.