fix: MOCK

This commit is contained in:
egarette@silique.fr 2025-02-19 09:13:55 +01:00
parent e9ef79e80b
commit 65e318e883

View file

@ -158,9 +158,7 @@ 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:
if type_ == 'secret':
return 'Ex4mpL3_P4ssw0rD'
return 'example_login'
return ['example_login'], 'Ex4mpL3_P4ssw0rD'
try:
data = self.get_key_from_commandline(key_bitwarden, allow_multiple)
except Exception as exc: