aboutsummaryrefslogtreecommitdiffstats
path: root/crates/rocie-server/tests
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
parentchore(rocie-client): Remove pointless `git_push.sh` script (diff)
downloadserver-757632f8623bdd3d742c8c91a283861887e0fff3.zip
style(rocie-server): Format
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;