Add instance, guild, channel to TestBundle

This commit is contained in:
bitfl0wer 2023-05-23 13:15:57 +02:00
parent fc55a53ed5
commit 12095132d5
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,5 @@
use chorus::{ use chorus::{
api::{AuthUsername, RegisterSchema, User}, api::{AuthUsername, Channel, Guild, RegisterSchema, User},
instance::Instance, instance::Instance,
URLBundle, URLBundle,
}; };
@ -8,6 +8,9 @@ use chorus::{
struct TestBundle { struct TestBundle {
urls: URLBundle, urls: URLBundle,
user: User, user: User,
instance: Instance,
guild: Guild,
channel: Channel,
} }
// Set up a test by creating an Instance and a User. Reduces Test boilerplate. // Set up a test by creating an Instance and a User. Reduces Test boilerplate.