3 pub mod private_message;
9 objects::tests::file_to_json_object,
11 activities::create_or_update::{
12 comment::CreateOrUpdateComment,
13 post::CreateOrUpdatePost,
14 private_message::CreateOrUpdatePrivateMessage,
16 tests::test_parse_lemmy_item,
21 async fn test_parse_create_or_update() {
22 test_parse_lemmy_item::<CreateOrUpdatePost>(
23 "assets/lemmy/activities/create_or_update/create_page.json",
26 test_parse_lemmy_item::<CreateOrUpdatePost>(
27 "assets/lemmy/activities/create_or_update/update_page.json",
30 test_parse_lemmy_item::<CreateOrUpdateComment>(
31 "assets/lemmy/activities/create_or_update/create_note.json",
34 test_parse_lemmy_item::<CreateOrUpdatePrivateMessage>(
35 "assets/lemmy/activities/create_or_update/create_private_message.json",
39 file_to_json_object::<WithContext<CreateOrUpdateComment>>(
40 "assets/pleroma/activities/create_note.json",
43 file_to_json_object::<WithContext<CreateOrUpdateComment>>(
44 "assets/smithereen/activities/create_note.json",
47 file_to_json_object::<CreateOrUpdateComment>("assets/mastodon/activities/create_note.json")
50 file_to_json_object::<CreateOrUpdatePost>("assets/lotide/activities/create_page.json").unwrap();
51 file_to_json_object::<CreateOrUpdateComment>("assets/lotide/activities/create_note_reply.json")
54 file_to_json_object::<CreateOrUpdateComment>("assets/friendica/activities/create_note.json")