Skip to content

Commit

Permalink
Edit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Sep 25, 2022
1 parent e29a11e commit f3b7feb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sea-orm-codegen/src/entity/base_entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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());
}
}

0 comments on commit f3b7feb

Please sign in to comment.