()
| 198 | |
| 199 | #[sea_orm_macros::test] |
| 200 | async fn partial_model_flat() { |
| 201 | let ctx = TestContext::new("partial_model_flat").await; |
| 202 | create_tables(&ctx.db).await.unwrap(); |
| 203 | |
| 204 | seed_data::init_1(&ctx, true).await; |
| 205 | |
| 206 | let bakery: Bakery = bakery::Entity::find() |
| 207 | .into_partial_model() |
| 208 | .one(&ctx.db) |
| 209 | .await |
| 210 | .expect("succeeds to get the result") |
| 211 | .expect("exactly one model in DB"); |
| 212 | |
| 213 | assert_eq!(bakery.id, 42); |
| 214 | assert_eq!(bakery.title, "cool little bakery"); |
| 215 | |
| 216 | ctx.delete().await; |
| 217 | } |
| 218 | |
| 219 | #[sea_orm_macros::test] |
| 220 | async fn partial_model_nested() { |
nothing calls this directly
no test coverage detected