refactor: Update create_test_items to use global INPUT_A and INPUT_B constants
This commit is contained in:
@@ -45,14 +45,14 @@ mod tests {
|
|||||||
let env = format!("KEEP_DIR={} cargo run -- --verbose", dir.display());
|
let env = format!("KEEP_DIR={} cargo run -- --verbose", dir.display());
|
||||||
|
|
||||||
// Create first item with tag_a and tag
|
// Create first item with tag_a and tag
|
||||||
let cmd = format!("echo {} | {} tag tag_a tag", input_a, env);
|
let cmd = format!("echo {} | {} tag tag_a tag", INPUT_A, env);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {}", input_a);
|
assert!(output.status.success(), "Command failed: {}", INPUT_A);
|
||||||
|
|
||||||
// Create second item with tag_b and tag
|
// Create second item with tag_b and tag
|
||||||
let cmd = format!("echo {} | {} tag tag_b tag", input_b, env);
|
let cmd = format!("echo {} | {} tag tag_b tag", INPUT_B, env);
|
||||||
let output = run_sh(cmd.as_str());
|
let output = run_sh(cmd.as_str());
|
||||||
assert!(output.status.success(), "Command failed: {}", input_b);
|
assert!(output.status.success(), "Command failed: {}", INPUT_B);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function to check if a file exists in the data directory
|
// Helper function to check if a file exists in the data directory
|
||||||
|
|||||||
Reference in New Issue
Block a user