Add incomplete add_remove_role test

This commit is contained in:
bitfl0wer 2023-06-10 00:39:04 +02:00
parent a18eab1884
commit a9fceedf0f
No known key found for this signature in database
GPG Key ID: 84BBB60DF895ABF2
1 changed files with 13 additions and 0 deletions

13
tests/member.rs Normal file
View File

@ -0,0 +1,13 @@
mod common;
#[tokio::test]
async fn add_remove_role() {
let mut bundle = common::setup().await;
let guild_id = &bundle.guild.id.to_string();
let role_id = &bundle.role.id.to_string();
let user_id = &bundle.user.object.id.to_string();
chorus::types::GuildMember::add_role(&mut bundle.user, guild_id, user_id, role_id).await;
chorus::types::GuildMember::remove_role(&mut bundle.user, guild_id, user_id, role_id).await;
// TODO: Implement /guilds/{guild_id}/members/{member_id}/ GET route.
common::teardown(bundle).await
}