fix: MOCK

This commit is contained in:
egarette@silique.fr 2025-02-19 09:27:47 +01:00
parent 80b1155d2a
commit d3c0f94f86

View file

@ -158,7 +158,9 @@ class RougailUserDataBitwarden:
self.errors.append(_('the default value for "{0}" must be the Bitwarden item name').format(path))
return None, None
if 'ROUGAIL_BITWARDEN_MOCK_ENABLE' in environ:
return ['example_login'], 'Ex4mpL3_P4ssw0rD'
if allow_multiple:
return ['example_login'], ['Ex4mpL3_P4ssw0rD']
return 'example_login', 'Ex4mpL3_P4ssw0rD'
try:
data = self.get_key_from_commandline(key_bitwarden, allow_multiple)
except Exception as exc: