From 30d6007d01732cb34ddf7944a7eecfef7d155a57 Mon Sep 17 00:00:00 2001 From: Moncef Arajdal Date: Wed, 16 Oct 2024 17:29:09 +0100 Subject: [PATCH] Update test_auth_admin_passkey.py --- auth_admin_passkey/tests/test_auth_admin_passkey.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/auth_admin_passkey/tests/test_auth_admin_passkey.py b/auth_admin_passkey/tests/test_auth_admin_passkey.py index ab2fb7524..3a18953b6 100644 --- a/auth_admin_passkey/tests/test_auth_admin_passkey.py +++ b/auth_admin_passkey/tests/test_auth_admin_passkey.py @@ -43,24 +43,24 @@ def setUpClass(cls): cls.user = user.with_user(user) def test_01_normal_login_succeed(self): - self.user._check_credentials({"type": "password", "password": self.user_password}, {"interactive": True}) + self.user._check_credentials({"password": self.user_password}, {"interactive": True}) def test_02_normal_login_fail(self): with self.assertRaises(exceptions.AccessDenied): - self.user._check_credentials({"type": "password", "password": self.bad_password}, {"interactive": True}) + self.user._check_credentials({"password": self.bad_password}, {"interactive": True}) def test_03_normal_login_passkey_fail(self): # This should fail, because feature is disabled config["auth_admin_passkey_password"] = False config["auth_admin_passkey_password_sha512_encrypted"] = False with self.assertRaises(exceptions.AccessDenied): - self.user._check_credentials({"type": "password", "password": self.sysadmin_passkey}, {"interactive": True}) + self.user._check_credentials({"password": self.sysadmin_passkey}, {"interactive": True}) def test_04_normal_login_passkey_succeed(self): # This should succeed, because feature is enabled config["auth_admin_passkey_password"] = self.sysadmin_passkey config["auth_admin_passkey_password_sha512_encrypted"] = False - self.user._check_credentials({"type": "password", "password": self.sysadmin_passkey}, {"interactive": True}) + self.user._check_credentials({"password": self.sysadmin_passkey}, {"interactive": True}) def test_05_passkey_login_passkey_succeed(self): """[Bug #1319391] @@ -74,4 +74,4 @@ def test_06_normal_login_passkey_succeed_encrypted_password(self): # This should succeed, because feature is enabled config["auth_admin_passkey_password"] = self.sysadmin_passkey_encrypted config["auth_admin_passkey_password_sha512_encrypted"] = True - self.user._check_credentials({"type": "password", "password": self.sysadmin_passkey}, {"interactive": True}) + self.user._check_credentials({"password": self.sysadmin_passkey}, {"interactive": True})