2 pub mod collection_add;
3 pub mod collection_remove;
10 use crate::protocol::{
11 activities::community::{
12 announce::AnnounceActivity,
13 collection_add::CollectionAdd,
14 collection_remove::CollectionRemove,
15 lock_page::{LockPage, UndoLockPage},
17 update::UpdateCommunity,
19 tests::test_parse_lemmy_item,
23 fn test_parse_lemmy_community_activities() {
24 test_parse_lemmy_item::<AnnounceActivity>(
25 "assets/lemmy/activities/community/announce_create_page.json",
29 test_parse_lemmy_item::<CollectionAdd>("assets/lemmy/activities/community/add_mod.json")
31 test_parse_lemmy_item::<CollectionRemove>("assets/lemmy/activities/community/remove_mod.json")
34 test_parse_lemmy_item::<CollectionAdd>(
35 "assets/lemmy/activities/community/add_featured_post.json",
38 test_parse_lemmy_item::<CollectionRemove>(
39 "assets/lemmy/activities/community/remove_featured_post.json",
43 test_parse_lemmy_item::<LockPage>("assets/lemmy/activities/community/lock_page.json").unwrap();
44 test_parse_lemmy_item::<UndoLockPage>("assets/lemmy/activities/community/undo_lock_page.json")
47 test_parse_lemmy_item::<UpdateCommunity>(
48 "assets/lemmy/activities/community/update_community.json",
52 test_parse_lemmy_item::<Report>("assets/lemmy/activities/community/report_page.json").unwrap();