8 objects::tests::file_to_json_object,
10 activities::create_or_update::{comment::CreateOrUpdateComment, post::CreateOrUpdatePost},
11 tests::test_parse_lemmy_item,
16 async fn test_parse_create_or_update() {
17 test_parse_lemmy_item::<CreateOrUpdatePost>(
18 "assets/lemmy/activities/create_or_update/create_page.json",
20 test_parse_lemmy_item::<CreateOrUpdatePost>(
21 "assets/lemmy/activities/create_or_update/update_page.json",
23 test_parse_lemmy_item::<CreateOrUpdateComment>(
24 "assets/lemmy/activities/create_or_update/create_note.json",
27 file_to_json_object::<WithContext<CreateOrUpdateComment>>(
28 "assets/pleroma/activities/create_note.json",
31 file_to_json_object::<WithContext<CreateOrUpdateComment>>(
32 "assets/smithereen/activities/create_note.json",
35 file_to_json_object::<CreateOrUpdateComment>("assets/mastodon/activities/create_note.json")
38 file_to_json_object::<CreateOrUpdatePost>("assets/lotide/activities/create_page.json").unwrap();
39 file_to_json_object::<CreateOrUpdateComment>("assets/lotide/activities/create_note_reply.json")