We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8ebc45 commit 3a2d9d7Copy full SHA for 3a2d9d7
src/bundle.rs
@@ -269,12 +269,16 @@ mod tests {
269
}
270
271
#[test]
272
- fn test_get_licenses_from_unpacked_conda_package_empty_liceses_dir() {
+ fn test_get_licenses_from_unpacked_conda_package_empty_licenses_dir() {
273
let unpacked_conda_dir = Path::new("tests/test_bundle_data/empty_licenses_dir");
274
275
+ fs::create_dir_all(unpacked_conda_dir.join("licenses")).unwrap();
276
+
277
let result =
278
get_licenses_from_unpacked_conda_package(unpacked_conda_dir.to_str().unwrap()).unwrap();
279
280
+ fs::remove_dir_all(unpacked_conda_dir).unwrap();
281
282
assert_eq!(result.len(), 1);
283
assert!(result.contains(&(
284
"NO LICENSE FOUND".to_string(),
0 commit comments