aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload_files.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/upload_files.rs')
-rw-r--r--tests/upload_files.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/upload_files.rs b/tests/upload_files.rs
index a819abe..aac9978 100644
--- a/tests/upload_files.rs
+++ b/tests/upload_files.rs
@@ -1,5 +1,6 @@
mod fixtures;
+use std::fs::create_dir_all;
use assert_fs::fixture::TempDir;
use fixtures::{server, server_no_stderr, tmpdir, Error, TestServer};
use reqwest::blocking::{multipart, Client};
@@ -125,7 +126,6 @@ fn uploading_files_to_allowed_dir_works(
let test_file_name = "uploaded test file.txt";
// Create test directory
- use std::fs::create_dir_all;
create_dir_all(server.path().join(upload_dir)).unwrap();
// Before uploading, check whether the uploaded file does not yet exist.
@@ -180,7 +180,6 @@ fn prevent_path_traversal_attacks(
#[case] expected: &str,
) -> Result<(), Error> {
// Create test directories
- use std::fs::create_dir_all;
create_dir_all(server.path().join("foo")).unwrap();
if !cfg!(windows) {
for dir in &["C:/foo/C:", r"C:\foo", r"\foo"] {