Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Dec 1, 2020
1 parent 58e1447 commit 26bfa11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/handlers/test_password_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,11 @@ def test_no_local_user_fallback_ui_auth(self):
mock_password_provider.check_password.reset_mock()

# first delete should give a 401
session = self._start_delete_device_session(tok1, "dev2")
channel = self._delete_device(tok1, "dev2")
self.assertEqual(channel.code, 401)
# there are no valid flows here!
self.assertEqual(channel.json_body["flows"], [])
session = channel.json_body["session"]
mock_password_provider.check_password.assert_not_called()

# now try deleting with the local password
Expand Down

0 comments on commit 26bfa11

Please sign in to comment.