@@ -1980,27 +1980,17 @@ def test_check_account_accessible_special_login_jupyter_access(self):
19801980 def test_check_account_accessible_missing_user_web_rejected (self ):
19811981 """Test that check_account_accessible rejects a missing UUID user on web (non-IO)."""
19821982 configuration = self .configuration
1983- # TODO: adjust backend to handle missing link and drop try/except here
1984- try :
1985- accessible = check_account_accessible (
1986- configuration , OTHER_USER_DN , "oidc" , io_login = False
1987- )
1988- except FileNotFoundError :
1989- accessible = False
1990-
1983+ accessible = check_account_accessible (
1984+ configuration , OTHER_USER_DN , "oidc" , io_login = False
1985+ )
19911986 self .assertFalse (accessible )
19921987
19931988 def test_check_account_accessible_missing_user_io_rejected (self ):
19941989 """Test that check_account_accessible rejects a missing UUID user on SFTP (IO)."""
19951990 configuration = self .configuration
1996- # TODO: adjust backend to handle missing link and drop try/except here
1997- try :
1998- accessible = check_account_accessible (
1999- configuration , OTHER_USER_DN , "sftp"
2000- )
2001- except FileNotFoundError :
2002- accessible = False
2003-
1991+ accessible = check_account_accessible (
1992+ configuration , OTHER_USER_DN , "sftp"
1993+ )
20041994 self .assertFalse (accessible )
20051995
20061996 def test_check_account_accessible_io_expire_disabled_on_email_alias (self ):
0 commit comments