Edit test case
This commit is contained in:
parent
e29a11eb45
commit
f3b7febc2e
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user