Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderManich committed Nov 28, 2023
1 parent 90d2af4 commit a522fe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/tests/database/access_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,15 @@ mod database_tests {
async fn get_by_uid_and_model_id_test() {
let (access_context, expected_access, user, model) = seed_db().await;

access::Entity::insert(expected_access.clone().into_active_model())
.exec(&access_context.db_context.get_connection())
.await
.unwrap();

let access = access_context
.get_access_by_uid_and_model_id(user.id, model.id)
.await;

dbg!(&expected_access, &access, user, model);

assert!(access.unwrap().unwrap() == expected_access);
}
}

0 comments on commit a522fe0

Please sign in to comment.