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/serve_request.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/serve_request.rs')
-rw-r--r-- | tests/serve_request.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/serve_request.rs b/tests/serve_request.rs index 31b9b75..ef346b2 100644 --- a/tests/serve_request.rs +++ b/tests/serve_request.rs @@ -1,5 +1,14 @@ mod fixtures; -use fixtures::*; + +use assert_cmd::prelude::*; +use assert_fs::fixture::TempDir; +use fixtures::{port, tmpdir, Error, FILES}; +use rstest::rstest; +use select::document::Document; +use select::predicate::Text; +use std::process::{Command, Stdio}; +use std::thread::sleep; +use std::time::Duration; #[rstest] fn serves_requests_with_no_options(tmpdir: TempDir) -> Result<(), Error> { |