Skip to content

Commit cfe9b14

Browse files
committed
Add test case for fixed logic
1 parent 79badce commit cfe9b14

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

fixtures/media_search.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,60 @@
594594
"profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_113603_75sq_1287035206.jpg",
595595
"id": "113603"
596596
}
597+
},
598+
{
599+
"type": "image",
600+
"tags": [],
601+
"location": {
602+
"latitude": 37.775180799999987,
603+
"id": "68841",
604+
"longitude": -122.2270716,
605+
"name": "El Novillo Taco Truck"
606+
},
607+
"comments": {
608+
"count": 1
609+
},
610+
"caption": {
611+
"created_time": "1287585453",
612+
"text": "Image with broken comment data ",
613+
"from": {
614+
"username": "darodriguez",
615+
"first_name": "David",
616+
"last_name": "Rodriguez",
617+
"type": "user",
618+
"id": "113603"
619+
},
620+
"id": "495311"
621+
},
622+
"link": "http://localhost:8000/p/C5Wr/",
623+
"likes": {
624+
"count": 0
625+
},
626+
"created_time": "1287585407",
627+
"images": {
628+
"low_resolution": {
629+
"url": "http://distillery-dev.s3.amazonaws.com/media/2010/10/20/1fde15405b6349ef949c9a8f5498868e_6.jpg",
630+
"width": 480,
631+
"height": 480
632+
},
633+
"thumbnail": {
634+
"url": "http://distillery-dev.s3.amazonaws.com/media/2010/10/20/1fde15405b6349ef949c9a8f5498868e_5.jpg",
635+
"width": 150,
636+
"height": 150
637+
},
638+
"standard_resolution": {
639+
"url": "http://distillery-dev.s3.amazonaws.com/media/2010/10/20/1fde15405b6349ef949c9a8f5498868e_7.jpg",
640+
"width": 612,
641+
"height": 612
642+
}
643+
},
644+
"user_has_liked": false,
645+
"id": "759211",
646+
"user": {
647+
"username": "darodriguez",
648+
"profile_picture": "http://distillery.s3.amazonaws.com/profiles/profile_113603_75sq_1287035206.jpg",
649+
"id": "113603"
650+
}
597651
}
598652
]
599653
}

0 commit comments

Comments
 (0)