@@ -10,18 +10,18 @@ def test_included_data_on_list(multiple_entries, client):
1010 response = client .get (reverse ("entry-list" ) + '?include=comments&page_size=5' )
1111 included = load_json (response .content ).get ('included' )
1212
13- assert len (load_json (response .content )['data' ]) == len (multiple_entries ), 'Correct entry count'
14- assert [x .get ('type' ) for x in included ] == ['comments' ], 'List included types are correct '
13+ assert len (load_json (response .content )['data' ]) == len (multiple_entries ), 'Incorrect entry count'
14+ assert [x .get ('type' ) for x in included ] == ['comments' ], 'List included types are incorrect '
1515
1616 comment_count = len ([resource for resource in included if resource ["type" ] == "comments" ])
1717 expected_comment_count = sum ([entry .comment_set .count () for entry in multiple_entries ])
18- assert comment_count == expected_comment_count , 'List comment count is correct '
18+ assert comment_count == expected_comment_count , 'List comment count is incorrect '
1919
2020
2121def test_included_data_on_detail (single_entry , client ):
2222 response = client .get (reverse ("entry-detail" , kwargs = {'pk' : single_entry .pk }) + '?include=comments' )
2323 included = load_json (response .content ).get ('included' )
2424
25- assert [x .get ('type' ) for x in included ] == ['comments' ], 'Detail included types are correct '
25+ assert [x .get ('type' ) for x in included ] == ['comments' ], 'Detail included types are incorrect '
2626 comment_count = len ([resource for resource in included if resource ["type" ] == "comments" ])
27- assert comment_count == single_entry .comment_set .count (), 'Detail comment count is correct '
27+ assert comment_count == single_entry .comment_set .count (), 'Detail comment count is incorrect '
0 commit comments