refactor: remove closure from create_test_items in test_save_item
This commit is contained in:
committed by
Andrew Phillips (aider)
parent
7490be8e42
commit
c34d7ccf4d
@@ -74,7 +74,7 @@ mod tests {
|
|||||||
fn test_save_item() {
|
fn test_save_item() {
|
||||||
with_temp_env(|data_dir| {
|
with_temp_env(|data_dir| {
|
||||||
// Create test items with the common environment setup
|
// Create test items with the common environment setup
|
||||||
create_test_items(data_dir, |input, tag| {
|
create_test_items(data_dir);
|
||||||
// Set the data directory for this test
|
// Set the data directory for this test
|
||||||
let env = format!("KEEP_DIR={} cargo run --", data_dir.display());
|
let env = format!("KEEP_DIR={} cargo run --", data_dir.display());
|
||||||
|
|
||||||
@@ -88,7 +88,6 @@ mod tests {
|
|||||||
output.status
|
output.status
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user