style(api): merge use decl; breathing-room blank in vocab test
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,8 +11,7 @@ use domain::{LocalizedLabel, NewTerm, VocabularyId};
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use utoipa::ToSchema;
|
use utoipa::ToSchema;
|
||||||
|
|
||||||
use crate::AppState;
|
use crate::{AppState, admin_objects::LabelView};
|
||||||
use crate::admin_objects::LabelView;
|
|
||||||
|
|
||||||
#[derive(Serialize, ToSchema)]
|
#[derive(Serialize, ToSchema)]
|
||||||
pub(crate) struct VocabularyView {
|
pub(crate) struct VocabularyView {
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ async fn create_list_vocabulary_and_terms(pool: PgPool) {
|
|||||||
.unwrap();
|
.unwrap();
|
||||||
let list_json: serde_json::Value =
|
let list_json: serde_json::Value =
|
||||||
serde_json::from_slice(&list.into_body().collect().await.unwrap().to_bytes()).unwrap();
|
serde_json::from_slice(&list.into_body().collect().await.unwrap().to_bytes()).unwrap();
|
||||||
|
|
||||||
assert!(
|
assert!(
|
||||||
list_json
|
list_json
|
||||||
.as_array()
|
.as_array()
|
||||||
|
|||||||
Reference in New Issue
Block a user