Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Jan 29, 2024
1 parent a2a7202 commit dc63c84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/security/test_ipa.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ def ipa_call_error():


def test_choose_server(client, mocker):
mocker.patch.dict(
current_app.config, {"FREEIPA_SERVERS": ["a.example.test", "b.example.com"]}
)
random = mocker.patch("noggin.security.ipa.random")
random.choice.side_effect = ["a.example.test", "b.example.test", "c.example.test"]
with client.session_transaction() as sess:
Expand Down

0 comments on commit dc63c84

Please sign in to comment.