6 pub mod undo_block_user;
11 use crate::protocol::{
12 activities::community::{
14 announce::AnnounceActivity,
15 block_user::BlockUserFromCommunity,
16 remove_mod::RemoveMod,
18 undo_block_user::UndoBlockUserFromCommunity,
19 update::UpdateCommunity,
21 tests::test_parse_lemmy_item,
25 async fn test_parse_lemmy_community() {
26 test_parse_lemmy_item::<AnnounceActivity>(
27 "assets/lemmy/activities/community/announce_create_page.json",
31 test_parse_lemmy_item::<AddMod>("assets/lemmy/activities/community/add_mod.json").unwrap();
32 test_parse_lemmy_item::<RemoveMod>("assets/lemmy/activities/community/remove_mod.json")
35 test_parse_lemmy_item::<BlockUserFromCommunity>(
36 "assets/lemmy/activities/community/block_user.json",
39 test_parse_lemmy_item::<UndoBlockUserFromCommunity>(
40 "assets/lemmy/activities/community/undo_block_user.json",
44 test_parse_lemmy_item::<UpdateCommunity>(
45 "assets/lemmy/activities/community/update_community.json",
49 test_parse_lemmy_item::<Report>("assets/lemmy/activities/community/report_page.json").unwrap();