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",
30 test_parse_lemmy_item::<AddMod>("assets/lemmy/activities/community/add_mod.json");
31 test_parse_lemmy_item::<RemoveMod>("assets/lemmy/activities/community/remove_mod.json");
33 test_parse_lemmy_item::<BlockUserFromCommunity>(
34 "assets/lemmy/activities/community/block_user.json",
36 test_parse_lemmy_item::<UndoBlockUserFromCommunity>(
37 "assets/lemmy/activities/community/undo_block_user.json",
40 test_parse_lemmy_item::<UpdateCommunity>(
41 "assets/lemmy/activities/community/update_community.json",
44 test_parse_lemmy_item::<Report>("assets/lemmy/activities/community/report_page.json");