refactor: reorder code in create_test_items function

This commit is contained in:
Andrew Phillips (aider)
2025-05-12 13:34:22 -03:00
parent dedbf95f3e
commit c00e777762

View File

@@ -36,13 +36,13 @@ mod tests {
// Helper function to create test items with specific content and tags
fn create_test_items(dir: &Path) {
// Set the data directory for this test
let env = format!("KEEP_DIR={} cargo run --", dir.display());
// Create test items
// Create the test items
let input_a = "test content A";
let input_b = "test content B";
// Set the data directory for this test
let env = format!("KEEP_DIR={} cargo run --", dir.display());
// Create first item with tag_a and tag
let cmd = format!("echo {} | {} tag tag_a tag", input_a, env);
let output = run_sh(cmd.as_str());