tooty/tests/Fixtures.elm

290 lines
7.1 KiB
Elm
Raw Normal View History

2017-04-25 10:27:15 -04:00
module Fixtures exposing (..)
import Mastodon.Model exposing (..)
2017-04-25 10:27:15 -04:00
accountSkro : Account
accountSkro =
{ acct = "SkroZoC"
, avatar = ""
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-24T20:25:37.398Z"
, display_name = "Skro"
, followers_count = 77
, following_count = 80
, header = ""
, id = "1391"
2017-04-25 10:27:15 -04:00
, locked = False
, note = "Skro note"
2017-04-25 10:27:15 -04:00
, statuses_count = 161
, url = "https://mamot.fr/@SkroZoC"
, username = "SkroZoC"
}
accountVjousse : Account
accountVjousse =
{ acct = "vjousse"
, avatar = ""
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-20T14:31:05.751Z"
, display_name = "Vincent Jousse"
, followers_count = 68
, following_count = 31
, header = ""
, id = "26303"
2017-04-25 10:27:15 -04:00
, locked = False
, note = "Vjousse note"
2017-04-25 10:27:15 -04:00
, statuses_count = 88
, url = "https://mamot.fr/@vjousse"
, username = "vjousse"
}
accountNico : Account
accountNico =
{ acct = "n1k0"
, avatar = ""
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-14T08:28:59.706Z"
, display_name = "NiKo`"
, followers_count = 162
, following_count = 79
, header = ""
, id = "17784"
2017-04-25 10:27:15 -04:00
, locked = False
, note = "Niko note"
2017-04-25 10:27:15 -04:00
, statuses_count = 358
, url = "https://mamot.fr/@n1k0"
, username = "n1k0"
}
accountPloum : Account
accountPloum =
{ acct = "ploum"
, avatar = ""
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-08T09:37:34.931Z"
, display_name = "ploum"
, followers_count = 1129
, following_count = 91
, header = ""
, id = "6840"
2017-04-25 10:27:15 -04:00
, locked = False
, note = "Ploum note"
2017-04-25 10:27:15 -04:00
, statuses_count = 601
, url = "https://mamot.fr/@ploum"
, username = "ploum"
}
statusNico : Status
statusNico =
{ account = accountNico
, application = Nothing
, content = "<p>hello</p>"
, created_at = "2017-04-24T20:12:20.922Z"
, favourited = Nothing
, favourites_count = 0
, id = StatusId "737931"
, in_reply_to_account_id = Nothing
, in_reply_to_id = Nothing
, media_attachments = []
, mentions = []
, reblog = Nothing
, reblogged = Nothing
, reblogs_count = 0
, sensitive = Just False
, spoiler_text = ""
, tags = []
, uri = "tag:mamot.fr,2017-04-24:objectId=737932:objectType=Status"
, url = Just "https://mamot.fr/@n1k0/737931"
, visibility = "public"
}
2017-04-25 10:27:15 -04:00
statusNicoToVjousse : Status
statusNicoToVjousse =
{ account = accountNico
2017-05-23 03:15:54 -04:00
, application = Nothing
, content = "<p>@vjousse coucou</p>"
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-24T20:16:20.922Z"
, favourited = Nothing
, favourites_count = 0
, id = StatusId "737932"
, in_reply_to_account_id = Just "26303"
, in_reply_to_id = Just <| StatusId "737425"
2017-04-25 10:27:15 -04:00
, media_attachments = []
, mentions =
[ { id = "26303"
2017-04-25 10:27:15 -04:00
, url = "https://mamot.fr/@vjousse"
, username = "vjousse"
, acct = "vjousse"
}
]
, reblog = Nothing
, reblogged = Nothing
, reblogs_count = 0
, sensitive = Just False
, spoiler_text = ""
, tags = []
, uri = "tag:mamot.fr,2017-04-24:objectId=737932:objectType=Status"
2017-05-14 15:40:01 -04:00
, url = Just "https://mamot.fr/@n1k0/737932"
2017-04-25 10:27:15 -04:00
, visibility = "public"
}
statusNicoToVjousseAgain : Status
statusNicoToVjousseAgain =
{ account = accountNico
2017-05-23 03:15:54 -04:00
, application = Nothing
, content = "<p>@vjousse recoucou</p>"
2017-04-25 10:27:15 -04:00
, created_at = "2017-04-25T07:41:23.492Z"
, favourited = Nothing
, favourites_count = 0
, id = StatusId "752169"
, in_reply_to_account_id = Just "26303"
, in_reply_to_id = Just <| StatusId "752153"
2017-04-25 10:27:15 -04:00
, media_attachments = []
, mentions =
[ { id = "26303"
2017-04-25 10:27:15 -04:00
, url = "https://mamot.fr/@vjousse"
, username = "vjousse"
, acct = "vjousse"
}
]
, reblog = Nothing
, reblogged = Nothing
, reblogs_count = 0
, sensitive = Just False
, spoiler_text = ""
, tags = []
, uri = "tag:mamot.fr,2017-04-25:objectId=752169:objectType=Status"
2017-05-14 15:40:01 -04:00
, url = Just "https://mamot.fr/@n1k0/752169"
2017-04-25 10:27:15 -04:00
, visibility = "public"
}
statusPloumToVjousse : Status
statusPloumToVjousse =
{ account = accountPloum
2017-05-23 03:15:54 -04:00
, application = Nothing
, content = "<p>hey @vjousse</p>"
, created_at = "2017-04-25T07:41:23.492Z"
, favourited = Nothing
, favourites_count = 0
, id = StatusId "752169"
, in_reply_to_account_id = Nothing
, in_reply_to_id = Nothing
, media_attachments = []
, mentions =
[ { id = "26303"
, url = "https://mamot.fr/@vjousse"
, username = "vjousse"
, acct = "vjousse"
}
]
, reblog = Nothing
, reblogged = Nothing
, reblogs_count = 0
, sensitive = Just False
, spoiler_text = ""
, tags = []
, uri = "tag:mamot.fr,2017-04-25:objectId=752169:objectType=Status"
2017-05-14 15:40:01 -04:00
, url = Just "https://mamot.fr/@n1k0/752169"
, visibility = "public"
}
statusReblogged : Status
statusReblogged =
{ account = accountVjousse
2017-05-23 03:15:54 -04:00
, application = Nothing
, content = "<p>fake post</p>"
, created_at = "2017-04-24T20:16:20.922Z"
, favourited = Nothing
, favourites_count = 0
, id = StatusId "737932"
, in_reply_to_account_id = Nothing
, in_reply_to_id = Nothing
, media_attachments = []
, mentions = []
, reblog = Just (Reblog statusPloumToVjousse)
, reblogged = Nothing
, reblogs_count = 0
, sensitive = Just False
, spoiler_text = ""
, tags = []
, uri = "tag:mamot.fr,2017-04-24:objectId=737932:objectType=Status"
2017-05-14 15:40:01 -04:00
, url = Just "https://mamot.fr/@n1k0/737932"
, visibility = "public"
}
2017-04-25 10:27:15 -04:00
notificationNicoMentionVjousse : Notification
notificationNicoMentionVjousse =
{ id = "224284"
2017-04-25 10:27:15 -04:00
, type_ = "mention"
, created_at = "2017-04-24T20:16:20.973Z"
, account = accountNico
, status = Just statusNicoToVjousse
}
notificationNicoMentionVjousseAgain : Notification
notificationNicoMentionVjousseAgain =
{ id = "226516"
2017-04-25 10:27:15 -04:00
, type_ = "mention"
, created_at = "2017-04-25T07:41:23.546Z"
, account = accountNico
, status = Just statusNicoToVjousseAgain
}
notificationNicoFollowsVjousse : Notification
notificationNicoFollowsVjousse =
{ id = "224257"
2017-04-25 10:27:15 -04:00
, type_ = "follow"
, created_at = "2017-04-24T20:13:47.431Z"
, account = accountNico
, status = Nothing
}
notificationSkroFollowsVjousse : Notification
notificationSkroFollowsVjousse =
{ id = "224"
2017-04-25 10:27:15 -04:00
, type_ = "follow"
, created_at = "2017-04-24T19:12:47.431Z"
, account = accountSkro
, status = Nothing
}
notificationPloumFollowsVjousse : Notification
notificationPloumFollowsVjousse =
{ id = "220"
2017-04-25 10:27:15 -04:00
, type_ = "follow"
, created_at = "2017-04-24T18:12:47.431Z"
, account = accountPloum
, status = Nothing
}
accounts : List Account
accounts =
[ accountSkro, accountVjousse, accountNico ]
notifications : List Notification
notifications =
[ notificationNicoMentionVjousse
, notificationNicoFollowsVjousse
, notificationSkroFollowsVjousse
]
duplicateAccountNotifications : List Notification
duplicateAccountNotifications =
[ notificationSkroFollowsVjousse
, notificationSkroFollowsVjousse
, notificationSkroFollowsVjousse
]