Skip to content

Commit

Permalink
Only the second call should raise an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
lhellebr committed Dec 11, 2024
1 parent c06ed07 commit 954a1b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/foreman/destructive/test_ldap_authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ def test_login_failure_rhsso_user_if_internal_user_exist(
'password': settings.rhsso.rhsso_password,
}
with module_target_sat.ui_session(login=False) as rhsso_session:
with pytest.raises(NavigationTriesExceeded) as error:
rhsso_session.rhsso_login.login(login_details)
rhsso_session.rhsso_login.login(login_details)
with pytest.raises(NavigationTriesExceeded) as error:
rhsso_session.task.read_all()
assert error.typename == 'NavigationTriesExceeded'
Expand Down

0 comments on commit 954a1b3

Please sign in to comment.