Use DbConn in model tests
This commit is contained in:
		
							parent
							
								
									85ab5393fd
								
							
						
					
					
						commit
						33bd290679
					
				| @ -422,6 +422,7 @@ impl CommentTree { | ||||
| mod tests { | ||||
|     use super::*; | ||||
|     use crate::blogs::Blog; | ||||
|     use crate::db_conn::DbConn; | ||||
|     use crate::inbox::{inbox, tests::fill_database, InboxResult}; | ||||
|     use crate::safe_string::SafeString; | ||||
|     use crate::tests::{db, format_datetime}; | ||||
|  | ||||
| @ -232,7 +232,9 @@ impl IntoId for Follow { | ||||
| #[cfg(test)] | ||||
| mod tests { | ||||
|     use super::*; | ||||
|     use crate::{tests::db, users::tests as user_tests, users::tests::fill_database}; | ||||
|     use crate::{ | ||||
|         db_conn::DbConn, tests::db, users::tests as user_tests, users::tests::fill_database, | ||||
|     }; | ||||
|     use assert_json_diff::assert_json_eq; | ||||
|     use diesel::Connection; | ||||
|     use serde_json::{json, to_value}; | ||||
|  | ||||
| @ -1027,6 +1027,7 @@ impl From<PostEvent> for Arc<Post> { | ||||
| #[cfg(test)] | ||||
| mod tests { | ||||
|     use super::*; | ||||
|     use crate::db_conn::DbConn; | ||||
|     use crate::inbox::{inbox, tests::fill_database, InboxResult}; | ||||
|     use crate::mentions::{Mention, NewMention}; | ||||
|     use crate::safe_string::SafeString; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user