Add more fixture files

master
Milton Mazzarri 2017-04-16 15:44:00 -05:00
parent 8733c5cd99
commit 291950f37d
No known key found for this signature in database
GPG Key ID: 9F4193F2B5A558FE
12 changed files with 420 additions and 0 deletions

6
test/fixtures/card.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"url": "https://github.com/milmazz/hunter",
"title": "milmazz/hunter",
"image": "https://social.lou.lt/system/preview_cards/images/000/000/378/original/34700?1491626499",
"description": "hunter - A Elixir client for Mastodon, a GNU Social compatible micro-blogging service"
}

40
test/fixtures/favourite.json vendored Normal file
View File

@ -0,0 +1,40 @@
{
"visibility": "public",
"url": "https://social.lou.lt/@FriendlyPootis/442",
"uri": "tag:social.lou.lt,2017-04-03:objectId=442:objectType=Status",
"tags": [],
"spoiler_text": "",
"sensitive": false,
"reblogs_count": 4,
"reblogged": false,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 442,
"favourites_count": 5,
"favourited": true,
"created_at": "2017-04-03T16:22:04.286Z",
"content": "<p>les gens pensez à migrer d&apos;instance pour en aller sur une moins chargée tant que vous pouvez, plus vous attendrez plus vous aurez la flemme</p>",
"application": {
"id": null,
"client_secret": null,
"client_id": null
},
"account": {
"username": "FriendlyPootis",
"url": "https://social.lou.lt/@FriendlyPootis",
"statuses_count": 253,
"note": "fermé comme un carré, Vladimir Pootin sur YT (<a href=\"https://www.youtube.com/VladimirPootin\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">youtube.com/VladimirPootin</span><span class=\"invisible\"></span></a>)",
"locked": false,
"id": 34,
"header": "https://social.lou.lt/system/accounts/headers/000/000/034/original/b009ddb5a8ce41c1.jpg?1491228302",
"following_count": 53,
"followers_count": 62,
"display_name": "FriendlyPootis 🚉",
"created_at": "2017-04-03T13:50:06.485Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/000/034/original/565da0399c2c26cf.jpg?1491228302",
"acct": "FriendlyPootis"
}
}

38
test/fixtures/favourites.json vendored Normal file
View File

@ -0,0 +1,38 @@
[
{
"visibility": "public",
"url": "https://mstdn.io/users/paperswelove/updates/19905",
"uri": "tag:mstdn.io,2017-04-16:objectId=421573:objectType=Status",
"tags": [],
"spoiler_text": "Distributed Systems Paper",
"sensitive": false,
"reblogs_count": 0,
"reblogged": null,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 376262,
"favourites_count": 0,
"favourited": true,
"created_at": "2017-04-16T15:32:24.000Z",
"content": "<p>Impossibility of Distributed Consensus with One Faulty<br>Process - Fischer, Lynch, Paterson</p><p>PDF: <a href=\"https://groups.csail.mit.edu/tds/papers/Lynch/jacm85.pdf\" rel=\"nofollow noopener\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">groups.csail.mit.edu/tds/paper</span><span class=\"invisible\">s/Lynch/jacm85.pdf</span></a></p><p>The consensus problem involves an asynchronous system of processes, some of which may be unreliable. The problem is for the reliable processes to agree on a binary value. In this paper, it is shown that every protocol for this problem has the possibility of nontermination, even with only one faulty process.</p>",
"application": null,
"account": {
"username": "paperswelove",
"url": "https://mstdn.io/@paperswelove",
"statuses_count": 20,
"note": "Building Bridges Between Academia and Industry\n\n<a href=\"http://paperswelove.org\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">paperswelove.org</span><span class=\"invisible\"></span></a>\n<a href=\"http://pwlconf.org\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">http://</span><span class=\"\">pwlconf.org</span><span class=\"invisible\"></span></a>",
"locked": false,
"id": 7126,
"header": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"following_count": 3,
"followers_count": 2,
"display_name": "Papers We Love",
"created_at": "2017-04-06T13:44:18.281Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"acct": "paperswelove@mstdn.io"
}
}
]

60
test/fixtures/hashtag_timeline.json vendored Normal file
View File

@ -0,0 +1,60 @@
[
{
"visibility": "public",
"url": "https://mstdn.io/users/paperswelove/updates/9954",
"uri": "tag:mstdn.io,2017-04-10:objectId=171105:objectType=Status",
"tags": [
{
"url": "https://social.lou.lt/tags/paperswelove",
"name": "paperswelove"
},
{
"url": "https://social.lou.lt/tags/compsci",
"name": "compsci"
},
{
"url": "https://social.lou.lt/tags/garbagecollection",
"name": "garbagecollection"
}
],
"spoiler_text": "",
"sensitive": false,
"reblogs_count": 0,
"reblogged": null,
"reblog": null,
"mentions": [],
"media_attachments": [
{
"url": "https://social.lou.lt/system/media_attachments/files/000/010/284/original/b0432b95264e141c.png?1491824449",
"type": "image",
"text_url": null,
"remote_url": "https://mstdn.io/system/media_attachments/files/000/009/562/original/b0432b95264e141c.png",
"preview_url": "https://social.lou.lt/system/media_attachments/files/000/010/284/small/b0432b95264e141c.png?1491824449",
"id": 10284
}
],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 186397,
"favourites_count": 0,
"favourited": null,
"created_at": "2017-04-10T11:40:45.000Z",
"content": "<p>One Pass Real-Time Generational Mark-Sweep Garbage Collection - Armstrong, Virding</p><p>Link: <a href=\"http://buff.ly/2pdh7iS\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">buff.ly/2pdh7iS</span><span class=\"invisible\"></span></a> </p><p>In this paper we present a simple scheme for reclaiming data for such language classes with a single pass mark-sweep collector. We also show how the simple scheme can be modified so that the collection can be done in an incremental manner (making it suitable for real-time collection).</p><p><a href=\"https://mstdn.io/tags/garbagecollection\" class=\"mention hashtag\">#<span>garbagecollection</span></a> <a href=\"https://mstdn.io/tags/compsci\" class=\"mention hashtag\">#<span>compsci</span></a> <a href=\"https://mstdn.io/tags/paperswelove\" class=\"mention hashtag\">#<span>paperswelove</span></a></p><p> <a href=\"https://mstdn.io/media/u03CNEJZho1pvTR3q6Y\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">mstdn.io/media/u03CNEJZho1pvTR</span><span class=\"invisible\">3q6Y</span></a></p>",
"application": null,
"account": {
"username": "paperswelove",
"url": "https://mstdn.io/@paperswelove",
"statuses_count": 8,
"note": "Building Bridges Between Academia and Industry\n\n<a href=\"http://paperswelove.org\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">paperswelove.org</span><span class=\"invisible\"></span></a>\n<a href=\"http://pwlconf.org\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">http://</span><span class=\"\">pwlconf.org</span><span class=\"invisible\"></span></a>",
"locked": false,
"id": 7126,
"header": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"following_count": 1,
"followers_count": 1,
"display_name": "Papers We Love",
"created_at": "2017-04-06T13:44:18.281Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"acct": "paperswelove@mstdn.io"
}
}
]

6
test/fixtures/instance_info.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"uri": "social.lou.lt",
"title": "Loultstodon",
"email": "maxime+mastodon@melinon.fr",
"description": "Mostly French instance - <a href=\"/about/more#rules\">Read full description</a> for rules."
}

7
test/fixtures/mute.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"requested": false,
"muting": true,
"following": true,
"followed_by": false,
"blocking": false
}

21
test/fixtures/notification.json vendored Normal file
View File

@ -0,0 +1,21 @@
{
"type": "follow",
"status": null,
"id": 17476,
"created_at": "2017-04-08T12:15:53.467Z",
"account": {
"username": "paperswelove",
"url": "https://mstdn.io/@paperswelove",
"statuses_count": 8,
"note": "Building Bridges Between Academia and Industry\n\n<a href=\"http://paperswelove.org\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">paperswelove.org</span><span class=\"invisible\"></span></a>\n<a href=\"http://pwlconf.org\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">http://</span><span class=\"\">pwlconf.org</span><span class=\"invisible\"></span></a>",
"locked": false,
"id": 7126,
"header": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"following_count": 1,
"followers_count": 1,
"display_name": "Papers We Love",
"created_at": "2017-04-06T13:44:18.281Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"acct": "paperswelove@mstdn.io"
}
}

23
test/fixtures/notifications.json vendored Normal file
View File

@ -0,0 +1,23 @@
[
{
"type": "follow",
"status": null,
"id": 17476,
"created_at": "2017-04-08T12:15:53.467Z",
"account": {
"username": "paperswelove",
"url": "https://mstdn.io/@paperswelove",
"statuses_count": 8,
"note": "Building Bridges Between Academia and Industry\n\n<a href=\"http://paperswelove.org\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">paperswelove.org</span><span class=\"invisible\"></span></a>\n<a href=\"http://pwlconf.org\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">http://</span><span class=\"\">pwlconf.org</span><span class=\"invisible\"></span></a>",
"locked": false,
"id": 7126,
"header": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"following_count": 1,
"followers_count": 1,
"display_name": "Papers We Love",
"created_at": "2017-04-06T13:44:18.281Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"acct": "paperswelove@mstdn.io"
}
}
]

38
test/fixtures/status.json vendored Normal file
View File

@ -0,0 +1,38 @@
{
"visibility": "public",
"url": "https://mstdn.io/users/paperswelove/updates/19905",
"uri": "tag:mstdn.io,2017-04-16:objectId=421573:objectType=Status",
"tags": [],
"spoiler_text": "Distributed Systems Paper",
"sensitive": false,
"reblogs_count": 0,
"reblogged": false,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 376262,
"favourites_count": 0,
"favourited": true,
"created_at": "2017-04-16T15:32:24.000Z",
"content": "<p>Impossibility of Distributed Consensus with One Faulty<br>Process - Fischer, Lynch, Paterson</p><p>PDF: <a href=\"https://groups.csail.mit.edu/tds/papers/Lynch/jacm85.pdf\" rel=\"nofollow noopener\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">groups.csail.mit.edu/tds/paper</span><span class=\"invisible\">s/Lynch/jacm85.pdf</span></a></p><p>The consensus problem involves an asynchronous system of processes, some of which may be unreliable. The problem is for the reliable processes to agree on a binary value. In this paper, it is shown that every protocol for this problem has the possibility of nontermination, even with only one faulty process.</p>",
"application": null,
"account": {
"username": "paperswelove",
"url": "https://mstdn.io/@paperswelove",
"statuses_count": 20,
"note": "Building Bridges Between Academia and Industry\n\n<a href=\"http://paperswelove.org\" rel=\"nofollow noopener\"><span class=\"invisible\">http://</span><span class=\"\">paperswelove.org</span><span class=\"invisible\"></span></a>\n<a href=\"http://pwlconf.org\" rel=\"nofollow noopener noopener\"><span class=\"invisible\">http://</span><span class=\"\">pwlconf.org</span><span class=\"invisible\"></span></a>",
"locked": false,
"id": 7126,
"header_static": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"header": "https://social.lou.lt/system/accounts/headers/000/007/126/original/missing.png?1491486258",
"following_count": 3,
"followers_count": 2,
"display_name": "Papers We Love",
"created_at": "2017-04-06T13:44:18.281Z",
"avatar_static": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/007/126/original/60ecc8225809c008.png?1491486258",
"acct": "paperswelove@mstdn.io"
}
}

134
test/fixtures/statuses.json vendored Normal file
View File

@ -0,0 +1,134 @@
[
{
"visibility": "public",
"url": "https://social.lou.lt/@milmazz/212703",
"uri": "tag:social.lou.lt,2017-04-11:objectId=212703:objectType=Status",
"tags": [],
"spoiler_text": "",
"sensitive": false,
"reblogs_count": 1,
"reblogged": null,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 212703,
"favourites_count": 1,
"favourited": null,
"created_at": "2017-04-11T04:55:55.778Z",
"content": "<p>New release: hunter (0.3.0): Elixir client for Mastodon, a GNU social-compatible micro-blogging service</p><p><a href=\"https://hex.pm/packages/hunter\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">hex.pm/packages/hunter</span><span class=\"invisible\"></span></a></p>",
"application": {
"id": null,
"client_secret": null,
"client_id": null
},
"account": {
"username": "milmazz",
"url": "https://social.lou.lt/@milmazz",
"statuses_count": 3,
"note": "",
"locked": false,
"id": 8039,
"header": "https://social.lou.lt/headers/original/missing.png",
"following_count": 4,
"followers_count": 4,
"display_name": "Milton Mazzarri",
"created_at": "2017-04-06T17:43:55.325Z",
"avatar": "https://social.lou.lt/avatars/original/missing.png",
"acct": "milmazz"
}
},
{
"visibility": "public",
"url": "https://social.lou.lt/@milmazz/118635",
"uri": "tag:social.lou.lt,2017-04-08:objectId=118635:objectType=Status",
"tags": [
{
"url": "https://social.lou.lt/tags/myelixirstatus",
"name": "myelixirstatus"
}
],
"spoiler_text": "",
"sensitive": null,
"reblogs_count": 0,
"reblogged": null,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 118635,
"favourites_count": 1,
"favourited": null,
"created_at": "2017-04-08T04:41:38.643Z",
"content": "<p>Hunter is a Elixir client for Mastodon: <a href=\"https://github.com/milmazz/hunter\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">github.com/milmazz/hunter</span><span class=\"invisible\"></span></a> <a href=\"https://social.lou.lt/tags/myelixirstatus\" class=\"mention hashtag\">#<span>myelixirstatus</span></a></p>",
"application": {
"id": null,
"client_secret": null,
"client_id": null
},
"account": {
"username": "milmazz",
"url": "https://social.lou.lt/@milmazz",
"statuses_count": 3,
"note": "",
"locked": false,
"id": 8039,
"header": "https://social.lou.lt/headers/original/missing.png",
"following_count": 4,
"followers_count": 4,
"display_name": "Milton Mazzarri",
"created_at": "2017-04-06T17:43:55.325Z",
"avatar": "https://social.lou.lt/avatars/original/missing.png",
"acct": "milmazz"
}
},
{
"visibility": "public",
"url": "https://social.lou.lt/@milmazz/59144",
"uri": "tag:social.lou.lt,2017-04-06:objectId=59144:objectType=Status",
"tags": [],
"spoiler_text": "",
"sensitive": false,
"reblogs_count": 0,
"reblogged": null,
"reblog": null,
"mentions": [
{
"username": "Shutsumon",
"url": "http://tootplanet.space/@Shutsumon",
"id": 7742,
"acct": "Shutsumon@tootplanet.space"
}
],
"media_attachments": [],
"in_reply_to_id": 59042,
"in_reply_to_account_id": 7742,
"id": 59144,
"favourites_count": 0,
"favourited": null,
"created_at": "2017-04-06T18:28:59.392Z",
"content": "<p><span class=\"h-card\"><a href=\"http://tootplanet.space/@Shutsumon\" class=\"u-url mention\">@<span>Shutsumon</span></a></span> You should read &quot;How to design programs&quot; book <a href=\"http://htdp.org\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"invisible\">http://</span><span class=\"\">htdp.org</span><span class=\"invisible\"></span></a></p>",
"application": {
"id": null,
"client_secret": null,
"client_id": null
},
"account": {
"username": "milmazz",
"url": "https://social.lou.lt/@milmazz",
"statuses_count": 3,
"note": "",
"locked": false,
"id": 8039,
"header": "https://social.lou.lt/headers/original/missing.png",
"following_count": 4,
"followers_count": 4,
"display_name": "Milton Mazzarri",
"created_at": "2017-04-06T17:43:55.325Z",
"avatar": "https://social.lou.lt/avatars/original/missing.png",
"acct": "milmazz"
}
}
]

40
test/fixtures/unfavourite.json vendored Normal file
View File

@ -0,0 +1,40 @@
{
"visibility": "public",
"url": "https://social.lou.lt/@FriendlyPootis/442",
"uri": "tag:social.lou.lt,2017-04-03:objectId=442:objectType=Status",
"tags": [],
"spoiler_text": "",
"sensitive": false,
"reblogs_count": 4,
"reblogged": false,
"reblog": null,
"mentions": [],
"media_attachments": [],
"in_reply_to_id": null,
"in_reply_to_account_id": null,
"id": 442,
"favourites_count": 5,
"favourited": true,
"created_at": "2017-04-03T16:22:04.286Z",
"content": "<p>les gens pensez à migrer d&apos;instance pour en aller sur une moins chargée tant que vous pouvez, plus vous attendrez plus vous aurez la flemme</p>",
"application": {
"id": null,
"client_secret": null,
"client_id": null
},
"account": {
"username": "FriendlyPootis",
"url": "https://social.lou.lt/@FriendlyPootis",
"statuses_count": 253,
"note": "fermé comme un carré, Vladimir Pootin sur YT (<a href=\"https://www.youtube.com/VladimirPootin\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">youtube.com/VladimirPootin</span><span class=\"invisible\"></span></a>)",
"locked": false,
"id": 34,
"header": "https://social.lou.lt/system/accounts/headers/000/000/034/original/b009ddb5a8ce41c1.jpg?1491228302",
"following_count": 53,
"followers_count": 62,
"display_name": "FriendlyPootis 🚉",
"created_at": "2017-04-03T13:50:06.485Z",
"avatar": "https://social.lou.lt/system/accounts/avatars/000/000/034/original/565da0399c2c26cf.jpg?1491228302",
"acct": "FriendlyPootis"
}
}

7
test/fixtures/unmute.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"requested": false,
"muting": false,
"following": true,
"followed_by": false,
"blocking": false
}