- let read_community = Community::read(&conn, inserted_community.id).unwrap();
- let updated_community =
- Community::update(&conn, inserted_community.id, &new_community).unwrap();
- let ignored_community = CommunityFollower::unfollow(&conn, &community_follower_form).unwrap();
- let left_community = CommunityModerator::leave(&conn, &community_moderator_form).unwrap();
- let unban = CommunityPersonBan::unban(&conn, &community_person_ban_form).unwrap();
- let num_deleted = Community::delete(&conn, inserted_community.id).unwrap();
- Person::delete(&conn, inserted_person.id).unwrap();
+ let read_community = Community::read(pool, inserted_community.id).await.unwrap();
+
+ let update_community_form = CommunityUpdateForm::builder()
+ .title(Some("nada".to_owned()))
+ .build();
+ let updated_community = Community::update(pool, inserted_community.id, &update_community_form)
+ .await
+ .unwrap();
+
+ let ignored_community = CommunityFollower::unfollow(pool, &community_follower_form)
+ .await
+ .unwrap();
+ let left_community = CommunityModerator::leave(pool, &community_moderator_form)
+ .await
+ .unwrap();
+ let unban = CommunityPersonBan::unban(pool, &community_person_ban_form)
+ .await
+ .unwrap();
+ let num_deleted = Community::delete(pool, inserted_community.id)
+ .await
+ .unwrap();
+ Person::delete(pool, inserted_person.id).await.unwrap();
+ Instance::delete(pool, inserted_instance.id).await.unwrap();