diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-09 18:23:20 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-09 18:23:20 +0100 |
| commit | 67a5f942d573b94ce9b20d19088be075ad433d78 (patch) | |
| tree | f15613c0ccaa1d48b5091c375980991f1891cdeb /src/generator/static_files.rs | |
| parent | 98d323f5e86df5eab2218ae879da68ae3cb5230a (diff) | |
Cleanup test directories
Diffstat (limited to 'src/generator/static_files.rs')
| -rw-r--r-- | src/generator/static_files.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/generator/static_files.rs b/src/generator/static_files.rs index ae676a1..9d7ec80 100644 --- a/src/generator/static_files.rs +++ b/src/generator/static_files.rs @@ -35,6 +35,7 @@ mod tests { generate(&static_dir, &template_dir, &output_dir, &context).expect("Generate failed"); assert_file_contents(&output_dir.join("test.jpg"), "Cool hat"); + cleanup_test_dir(&test_dir); } #[test] @@ -53,6 +54,7 @@ mod tests { generate(&static_dir, &template_dir, &output_dir, &context).expect("Generate failed"); assert_file_contents(&output_dir.join("nested/test.mov"), "Cool hats, multiple."); + cleanup_test_dir(&test_dir); } #[test] @@ -67,5 +69,6 @@ mod tests { let result = generate(&static_dir, &template_dir, &output_dir, &context); assert!(result.is_ok()); + cleanup_test_dir(&test_dir); } } |