diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-04 06:32:06 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-04 06:32:06 +0000 |
| commit | 0c8bad1cdb969cfec807cdd026313ffa848f4720 (patch) | |
| tree | 808fdfce9f77bd28e9bcb796053a0ced40f09f9b /tests | |
| parent | 190c20497b015189f1ddd2ecdaf0d6e340c9141f (diff) | |
| download | genenetwork4-0c8bad1cdb969cfec807cdd026313ffa848f4720.tar.gz | |
Format with cargo fmt, matching 924bcf3's project-wide pass.
* src/db.rs, src/routes/groups.rs, tests/dataset_by_name.rs, tests/group_by_name.rs, tests/group_trait_info.rs: Run cargo fmt. No behavior change -- this code was written before the project adopted cargo fmt formatting in 924bcf3 and landed unformatted during the rebase that merged the two histories. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XDDpXvZBQat9uSgDeEMJ8d
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/dataset_by_name.rs | 6 | ||||
| -rw-r--r-- | tests/group_by_name.rs | 6 | ||||
| -rw-r--r-- | tests/group_trait_info.rs | 10 |
3 files changed, 8 insertions, 14 deletions
diff --git a/tests/dataset_by_name.rs b/tests/dataset_by_name.rs index 48208e6..84a670e 100644 --- a/tests/dataset_by_name.rs +++ b/tests/dataset_by_name.rs @@ -17,11 +17,7 @@ async fn dataset_by_name_returns_dataset_row() { return; } - let response = common::get( - "GET /datasets/Br_U_0803_M", - "/datasets/Br_U_0803_M", - ) - .await; + let response = common::get("GET /datasets/Br_U_0803_M", "/datasets/Br_U_0803_M").await; assert_eq!(response.status(), StatusCode::OK); diff --git a/tests/group_by_name.rs b/tests/group_by_name.rs index bd2bb0f..576fedd 100644 --- a/tests/group_by_name.rs +++ b/tests/group_by_name.rs @@ -59,11 +59,7 @@ async fn group_by_name_unknown_group_returns_404() { return; } - let response = common::get( - "GET /groups/not-a-real-group", - "/groups/not-a-real-group", - ) - .await; + let response = common::get("GET /groups/not-a-real-group", "/groups/not-a-real-group").await; assert_eq!(response.status(), StatusCode::NOT_FOUND); let request_id = response diff --git a/tests/group_trait_info.rs b/tests/group_trait_info.rs index 49a3bdd..3d9a792 100644 --- a/tests/group_trait_info.rs +++ b/tests/group_trait_info.rs @@ -26,10 +26,12 @@ async fn group_trait_info_bxd_returns_phenotype_and_publication() { assert_eq!(info["id"], 10001); assert_eq!(info["units"], "mg"); - assert!(info["post_publication_description"] - .as_str() - .unwrap() - .contains("Cerebellum weight")); + assert!( + info["post_publication_description"] + .as_str() + .unwrap() + .contains("Cerebellum weight") + ); assert_eq!(info["pubmed_id"], 11438585); assert_eq!(info["authors"], "Airey DC, Lu L, Williams RW"); assert_eq!(info["year"], "2001"); |
