From d6a6bb4dd16365152c7745ab4260797a452060e5 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 9 Mar 2020 18:07:42 +0100 Subject: Fix deprecated stuff --- tests/auth.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/auth.rs') diff --git a/tests/auth.rs b/tests/auth.rs index 0afaefd..7074d00 100644 --- a/tests/auth.rs +++ b/tests/auth.rs @@ -5,14 +5,14 @@ use assert_fs::fixture::TempDir; use fixtures::{port, tmpdir, Error, FILES}; use pretty_assertions::assert_eq; use reqwest::StatusCode; -use rstest::{rstest, rstest_parametrize}; +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_parametrize( +#[rstest( cli_auth_arg, client_username, client_password, case("testuser:testpassword", "testuser", "testpassword"), case( @@ -64,7 +64,7 @@ fn auth_accepts( Ok(()) } -#[rstest_parametrize( +#[rstest( cli_auth_arg, client_username, client_password, case("rightuser:rightpassword", "wronguser", "rightpassword"), case( @@ -141,7 +141,7 @@ fn register_accounts<'a>(command: &'a mut Command) -> &'a mut Command { // pwd5 } -#[rstest_parametrize( +#[rstest( username, password, case("usr0", "pwd0"), @@ -216,7 +216,7 @@ fn auth_multiple_accounts_wrong_username(tmpdir: TempDir, port: u16) -> Result<( Ok(()) } -#[rstest_parametrize( +#[rstest( username, password, case("usr0", "pwd5"), -- cgit v1.2.3