diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/genotypes.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/genotypes.rs b/tests/genotypes.rs index 8b94e95..5d5f575 100644 --- a/tests/genotypes.rs +++ b/tests/genotypes.rs @@ -59,12 +59,14 @@ async fn the_listing_names_versions_without_paths_and_maps_by_group() { assert!(version["individuals"].as_u64().unwrap() > 0, "{version}"); assert!(version["markers"].as_u64().unwrap() > 0, "{version}"); } + // No paths -- but the file *name* is part of the metadata now. let text = listing.to_string(); assert!(!text.contains('/'), "no path in the listing: {text}"); - assert!( - !text.contains(".geno"), - "no file name in the listing: {text}" - ); + for version in versions { + let file = version["file"].as_str().expect("a file name"); + assert!(file.ends_with(".geno"), "{version}"); + assert!(!file.contains('/'), "{version}"); + } // The group record points at it. let response = get_with_token("GET /groups/BXD", "/groups/BXD", &token).await; |
