Skip to content

Commit

Permalink
update test data
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Sep 28, 2023
1 parent 622fd9b commit 927c832
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 54 deletions.
2 changes: 1 addition & 1 deletion tests/models/fetch_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def main() -> None:
name='thread_view_post_with_embed_media',
method='app.bsky.feed.get_post_thread',
params={
'uri': 'at://did:plc:hbtuqflamm5j2i7yahtzsnue/app.bsky.feed.post/3k3ic43ucbq2f',
'uri': 'at://did:plc:kvwvcn5iqfooopmyzvb4qzba/app.bsky.feed.post/3kaheyt6vpc22',
'depth': 1,
'parentHeight': 0,
},
Expand Down
79 changes: 26 additions & 53 deletions tests/models/test_data/thread_view_post_with_embed_media.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"thread": {
"$type": "app.bsky.feed.defs#threadViewPost",
"post": {
"uri": "at://did:plc:hbtuqflamm5j2i7yahtzsnue/app.bsky.feed.post/3k3ic43ucbq2f",
"cid": "bafyreib7whej6tn7aoqwqgm6upautwbcgasshnr7dqdx6bxzpfyyn6nezi",
"uri": "at://did:plc:kvwvcn5iqfooopmyzvb4qzba/app.bsky.feed.post/3kaheyt6vpc22",
"cid": "bafyreigb666sdjyyaczcahxmf5tzh7dec6bwr3nhdab7llebn7vhsxzgr4",
"author": {
"did": "did:plc:hbtuqflamm5j2i7yahtzsnue",
"handle": "raven.corvids.club",
"displayName": "raven",
"avatar": "https://av-cdn.bsky.app/img/avatar/plain/did:plc:hbtuqflamm5j2i7yahtzsnue/bafkreihuti6ufyyrhsozy42humvywvrfqtmz63whkfeavtsvhrfbz6rqr4@jpeg",
"did": "did:plc:kvwvcn5iqfooopmyzvb4qzba",
"handle": "test.marshal.dev",
"displayName": "I love Python 3",
"avatar": "https://av-cdn.bsky.app/img/avatar/plain/did:plc:kvwvcn5iqfooopmyzvb4qzba/bafkreicwqcugdgubtawr6xv6jjifoju67eigwx2xgz4zs73nkzzn36oucy@jpeg",
"viewer": {
"muted": false,
"blockedBy": false
Expand All @@ -28,100 +28,73 @@
"image": {
"$type": "blob",
"ref": {
"$link": "bafkreif2blhvgss23kj2lqi6b6qkb6jqnz3zze6mvyvh7argmhpealzlw4"
"$link": "bafkreic3cp5ky525vsukjvrzxsc2h3jka2gud74l2hgeatw2rhj2qycnmq"
},
"mimeType": "image/jpeg",
"size": 282975
"size": 474482
}
}
]
},
"record": {
"$type": "app.bsky.embed.record",
"record": {
"cid": "bafyreicutqwniezgehk7ie3vxjtkiwyv73oxgqczqpinn6tgf2lq7x32eu",
"uri": "at://did:plc:z2rokxrttw5254hogmucux2x/app.bsky.feed.post/3k3hbh6k7752z"
"cid": "bafyreier7l7l33k23invvoeth2ed2hkwlxlv3igbhp3536hmmeouob7mzi",
"uri": "at://did:plc:kvwvcn5iqfooopmyzvb4qzba/app.bsky.feed.post/3kahesw26il2z"
}
}
},
"langs": [
"en"
],
"createdAt": "2023-07-27T06:24:25.696Z"
"createdAt": "2023-09-28T12:49:36.735Z"
},
"embed": {
"$type": "app.bsky.embed.recordWithMedia#view",
"record": {
"record": {
"$type": "app.bsky.embed.record#viewRecord",
"uri": "at://did:plc:z2rokxrttw5254hogmucux2x/app.bsky.feed.post/3k3hbh6k7752z",
"cid": "bafyreicutqwniezgehk7ie3vxjtkiwyv73oxgqczqpinn6tgf2lq7x32eu",
"uri": "at://did:plc:kvwvcn5iqfooopmyzvb4qzba/app.bsky.feed.post/3kahesw26il2z",
"cid": "bafyreier7l7l33k23invvoeth2ed2hkwlxlv3igbhp3536hmmeouob7mzi",
"author": {
"did": "did:plc:z2rokxrttw5254hogmucux2x",
"handle": "lookitup.baby",
"displayName": "Ian Coldwater",
"avatar": "https://av-cdn.bsky.app/img/avatar/plain/did:plc:z2rokxrttw5254hogmucux2x/bafkreif7zcepr4rrg3o4gctttycvbklypxvzlpsfd7y4bo2bkixrvdafv4@jpeg",
"did": "did:plc:kvwvcn5iqfooopmyzvb4qzba",
"handle": "test.marshal.dev",
"displayName": "I love Python 3",
"avatar": "https://av-cdn.bsky.app/img/avatar/plain/did:plc:kvwvcn5iqfooopmyzvb4qzba/bafkreicwqcugdgubtawr6xv6jjifoju67eigwx2xgz4zs73nkzzn36oucy@jpeg",
"viewer": {
"muted": false,
"blockedBy": false
},
"labels": []
},
"value": {
"text": "*David Attenborough voice* the young sharks gather in the spawning grounds, waiting for the dolls to find them",
"text": "test",
"$type": "app.bsky.feed.post",
"embed": {
"$type": "app.bsky.embed.images",
"images": [
{
"alt": "a large pile of BL\u00c5HAJ ",
"image": {
"$type": "blob",
"ref": {
"$link": "bafkreih7blzl33qe3brghoga6fzb6gq4xhglagiqepyfq6wskdrinx24am"
},
"mimeType": "image/jpeg",
"size": 954723
}
}
]
},
"langs": [
"en"
],
"createdAt": "2023-07-26T20:40:05.511Z"
"createdAt": "2023-09-28T12:46:18.414Z"
},
"labels": [],
"indexedAt": "2023-07-26T20:40:05.511Z",
"embeds": [
{
"$type": "app.bsky.embed.images#view",
"images": [
{
"thumb": "https://av-cdn.bsky.app/img/feed_thumbnail/plain/did:plc:z2rokxrttw5254hogmucux2x/bafkreih7blzl33qe3brghoga6fzb6gq4xhglagiqepyfq6wskdrinx24am@jpeg",
"fullsize": "https://av-cdn.bsky.app/img/feed_fullsize/plain/did:plc:z2rokxrttw5254hogmucux2x/bafkreih7blzl33qe3brghoga6fzb6gq4xhglagiqepyfq6wskdrinx24am@jpeg",
"alt": "a large pile of BL\u00c5HAJ "
}
]
}
]
"indexedAt": "2023-09-28T12:46:18.414Z",
"embeds": []
}
},
"media": {
"$type": "app.bsky.embed.images#view",
"images": [
{
"thumb": "https://av-cdn.bsky.app/img/feed_thumbnail/plain/did:plc:hbtuqflamm5j2i7yahtzsnue/bafkreif2blhvgss23kj2lqi6b6qkb6jqnz3zze6mvyvh7argmhpealzlw4@jpeg",
"fullsize": "https://av-cdn.bsky.app/img/feed_fullsize/plain/did:plc:hbtuqflamm5j2i7yahtzsnue/bafkreif2blhvgss23kj2lqi6b6qkb6jqnz3zze6mvyvh7argmhpealzlw4@jpeg",
"thumb": "https://av-cdn.bsky.app/img/feed_thumbnail/plain/did:plc:kvwvcn5iqfooopmyzvb4qzba/bafkreic3cp5ky525vsukjvrzxsc2h3jka2gud74l2hgeatw2rhj2qycnmq@jpeg",
"fullsize": "https://av-cdn.bsky.app/img/feed_fullsize/plain/did:plc:kvwvcn5iqfooopmyzvb4qzba/bafkreic3cp5ky525vsukjvrzxsc2h3jka2gud74l2hgeatw2rhj2qycnmq@jpeg",
"alt": ""
}
]
}
},
"replyCount": 0,
"repostCount": 6,
"likeCount": 52,
"indexedAt": "2023-07-27T06:24:25.696Z",
"repostCount": 0,
"likeCount": 0,
"indexedAt": "2023-09-28T12:49:36.735Z",
"viewer": {},
"labels": []
},
Expand Down

0 comments on commit 927c832

Please sign in to comment.