refactor: reorder code in create_test_items function
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user