mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-26 05:21:00 +00:00
Attach avater to sample user
This commit is contained in:
parent
6107842303
commit
e1a598a459
1 changed files with 15 additions and 0 deletions
|
@ -1142,6 +1142,7 @@ pub(crate) mod tests {
|
|||
use super::*;
|
||||
use crate::{
|
||||
instance::{tests as instance_tests, Instance},
|
||||
medias::{Media, NewMedia},
|
||||
tests::db,
|
||||
Connection as Conn,
|
||||
};
|
||||
|
@ -1179,6 +1180,20 @@ pub(crate) mod tests {
|
|||
Some("invalid_other_password".to_owned()),
|
||||
)
|
||||
.unwrap();
|
||||
let _avatar = Media::insert(
|
||||
conn,
|
||||
NewMedia {
|
||||
file_path: "https://plu.me/media/example.png".into(),
|
||||
alt_text: "Another user".into(),
|
||||
is_remote: false,
|
||||
remote_url: None,
|
||||
sensitive: false,
|
||||
content_warning: None,
|
||||
owner_id: other.id,
|
||||
},
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
vec![admin, user, other]
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue