diff options
author | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-05-01 07:13:13 +0000 |
---|---|---|
committer | Sven-Hendrik Haase <svenstaro@gmail.com> | 2019-05-01 07:13:13 +0000 |
commit | 1adab9d2f5d7863b6df32992ecb21dcea5b51d21 (patch) | |
tree | 2eda7658c659bb25c3e412b7c2d03d89b0226aa8 /tests/upload_files.rs | |
parent | Merge pull request #91 from KSXGitHub/split-integration-test (diff) | |
download | miniserve-1adab9d2f5d7863b6df32992ecb21dcea5b51d21.tar.gz miniserve-1adab9d2f5d7863b6df32992ecb21dcea5b51d21.zip |
Make tests into their own proper modules without star imports
Star imports make it hard to see which imports a module is actually using so I prefer to have this be a bit more explicit.
Diffstat (limited to 'tests/upload_files.rs')
-rw-r--r-- | tests/upload_files.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/upload_files.rs b/tests/upload_files.rs index 1bdecc3..6a24aee 100644 --- a/tests/upload_files.rs +++ b/tests/upload_files.rs @@ -1,5 +1,15 @@ mod fixtures; -use fixtures::*; + +use assert_cmd::prelude::*; +use assert_fs::fixture::TempDir; +use fixtures::{port, tmpdir, Error}; +use reqwest::multipart; +use rstest::rstest; +use select::document::Document; +use select::predicate::{Attr, Text}; +use std::process::{Command, Stdio}; +use std::thread::sleep; +use std::time::Duration; #[rstest] fn uploading_files_works(tmpdir: TempDir, port: u16) -> Result<(), Error> { |