about summary refs log tree commit diff stats
path: root/crates/rocie-server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/rocie-server/tests')
-rw-r--r--crates/rocie-server/tests/_testenv/init.rs2
-rw-r--r--crates/rocie-server/tests/product_parents/mod.rs2
-rw-r--r--crates/rocie-server/tests/product_parents/query.rs15
-rw-r--r--crates/rocie-server/tests/tests.rs4
-rw-r--r--crates/rocie-server/tests/units/mod.rs2
5 files changed, 15 insertions, 10 deletions
diff --git a/crates/rocie-server/tests/_testenv/init.rs b/crates/rocie-server/tests/_testenv/init.rs
index 5318238..37d50ff 100644
--- a/crates/rocie-server/tests/_testenv/init.rs
+++ b/crates/rocie-server/tests/_testenv/init.rs
@@ -114,7 +114,7 @@ impl TestEnv {
     pub(crate) async fn new(name: &'static str) -> TestEnv {
         let env = Self::new_no_login(name);
 
-         request!(
+        request!(
             env,
             provision(UserStub {
                 description: Some("Test user, used during test runs".to_string()),
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()],
     );
 
diff --git a/crates/rocie-server/tests/tests.rs b/crates/rocie-server/tests/tests.rs
index 4a218d1..373b573 100644
--- a/crates/rocie-server/tests/tests.rs
+++ b/crates/rocie-server/tests/tests.rs
@@ -3,8 +3,8 @@
 mod _testenv;
 pub(crate) use _testenv as testenv;
 
-mod products;
 mod product_parents;
-mod units;
+mod products;
 mod recipies;
+mod units;
 mod users;
diff --git a/crates/rocie-server/tests/units/mod.rs b/crates/rocie-server/tests/units/mod.rs
index 0481d71..54ff0ab 100644
--- a/crates/rocie-server/tests/units/mod.rs
+++ b/crates/rocie-server/tests/units/mod.rs
@@ -1,2 +1,2 @@
-mod register;
 mod fetch;
+mod register;