Edit test case

This commit is contained in:
Billy Chan 2022-09-25 10:43:50 +08:00
parent e29a11eb45
commit f3b7febc2e
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -166,7 +166,7 @@ impl Entity {
#[cfg(test)]
mod tests {
use quote::format_ident;
use quote::{format_ident, quote};
use sea_query::{ColumnType, ForeignKeyAction};
use crate::{Column, DateTimeCrate, Entity, PrimaryKey, Relation, RelationType};
@ -438,7 +438,8 @@ mod tests {
#[test]
fn test_get_eq_needed() {
let entity = setup();
let expected = quote! {, Eq};
println!("entity: {:?}", entity.get_eq_needed());
assert_eq!(entity.get_eq_needed().to_string(), expected.to_string());
}
}