diff options
Diffstat (limited to 'tests/header.rs')
-rw-r--r-- | tests/header.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/header.rs b/tests/header.rs index 4ac38b1..443f2ba 100644 --- a/tests/header.rs +++ b/tests/header.rs @@ -1,13 +1,13 @@ +use rstest::rstest; + mod fixtures; -use fixtures::{server, Error}; -use rstest::rstest; +use crate::fixtures::{server, Error}; -#[rstest(headers, - case(vec!["x-info: 123".to_string()]), - case(vec!["x-info1: 123".to_string(), "x-info2: 345".to_string()]) -)] -fn custom_header_set(headers: Vec<String>) -> Result<(), Error> { +#[rstest] +#[case(vec!["x-info: 123".to_string()])] +#[case(vec!["x-info1: 123".to_string(), "x-info2: 345".to_string()])] +fn custom_header_set(#[case] headers: Vec<String>) -> Result<(), Error> { let server = server(headers.iter().flat_map(|h| vec!["--header", h])); let resp = reqwest::blocking::get(server.url())?; |