Make ban test a little more meaningful (#399)

By checking for an error on trying to ban the same person again, we can
kind of gauge if the ban functionality actually works.
This commit is contained in:
Flori 2023-08-20 19:26:57 +02:00 committed by GitHub
commit 4e56181486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -56,5 +56,13 @@ async fn guild_create_ban() {
) )
.await .await
.unwrap(); .unwrap();
assert!(Guild::create_ban(
guild.id,
other_user_id,
GuildBanCreateSchema::default(),
&mut bundle.user,
)
.await
.is_err());
common::teardown(bundle).await common::teardown(bundle).await
} }