🔒 test(test_setup_superuser.py): add mock for verify_password function to fix test failure

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-10-03 18:14:32 -03:00
commit 9751c5cb62

View file

@ -12,9 +12,10 @@ from langflow.services.utils import (
@patch("langflow.services.getters.get_settings_service")
@patch("langflow.services.utils.create_super_user")
@patch("langflow.services.utils.verify_password")
@patch("langflow.services.getters.get_session")
def test_setup_superuser(
mock_get_session, mock_create_super_user, mock_get_settings_service
mock_get_session, mock_create_super_user, mock_get_settings_service, mock_verify
):
# Test when AUTO_LOGIN is True
calls = []