about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests/product_parents
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:14:18 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-12-09 13:14:18 +0100
commit757632f8623bdd3d742c8c91a283861887e0fff3 (patch)
treec03b494ed477981513a36a742df82ccb562f31ff /crates/rocie-server/tests/product_parents
parentchore(rocie-client): Remove pointless `git_push.sh` script (diff)
downloadserver-757632f8623bdd3d742c8c91a283861887e0fff3.zip
style(rocie-server): Format
Diffstat (limited to 'crates/rocie-server/tests/product_parents')
-rw-r--r--crates/rocie-server/tests/product_parents/mod.rs2
-rw-r--r--crates/rocie-server/tests/product_parents/query.rs15
2 files changed, 11 insertions, 6 deletions
diff --git a/crates/rocie-server/tests/product_parents/mod.rs b/crates/rocie-server/tests/product_parents/mod.rs
index 46ec0ca..d3799a7 100644
--- a/crates/rocie-server/tests/product_parents/mod.rs
+++ b/crates/rocie-server/tests/product_parents/mod.rs
@@ -1,2 +1,2 @@
-mod register;
 mod query;
+mod register;
diff --git a/crates/rocie-server/tests/product_parents/query.rs b/crates/rocie-server/tests/product_parents/query.rs
index 635a0ba..b05ad7c 100644
--- a/crates/rocie-server/tests/product_parents/query.rs
+++ b/crates/rocie-server/tests/product_parents/query.rs
@@ -1,6 +1,8 @@
 use rocie_client::{
     apis::{
-        api_get_auth_product_api::{products_by_product_parent_id_direct, products_by_product_parent_id_indirect},
+        api_get_auth_product_api::{
+            products_by_product_parent_id_direct, products_by_product_parent_id_indirect,
+        },
         api_get_auth_product_parent_api::{product_parents_toplevel, product_parents_under},
         api_set_auth_product_api::register_product,
         api_set_auth_product_parent_api::register_product_parent,
@@ -111,10 +113,13 @@ async fn test_product_parent_query_product() {
     );
 
     assert_eq!(
-        request!(env, products_by_product_parent_id_indirect(parent_dairy_milk))
-            .into_iter()
-            .map(|product| product.name)
-            .collect::<Vec<_>>(),
+        request!(
+            env,
+            products_by_product_parent_id_indirect(parent_dairy_milk)
+        )
+        .into_iter()
+        .map(|product| product.name)
+        .collect::<Vec<_>>(),
         vec!["Soy milk".to_owned()],
     );