fix: MOCK
This commit is contained in:
parent
e9ef79e80b
commit
65e318e883
1 changed files with 1 additions and 3 deletions
|
@ -158,9 +158,7 @@ class RougailUserDataBitwarden:
|
||||||
self.errors.append(_('the default value for "{0}" must be the Bitwarden item name').format(path))
|
self.errors.append(_('the default value for "{0}" must be the Bitwarden item name').format(path))
|
||||||
return None, None
|
return None, None
|
||||||
if 'ROUGAIL_BITWARDEN_MOCK_ENABLE' in environ:
|
if 'ROUGAIL_BITWARDEN_MOCK_ENABLE' in environ:
|
||||||
if type_ == 'secret':
|
return ['example_login'], 'Ex4mpL3_P4ssw0rD'
|
||||||
return 'Ex4mpL3_P4ssw0rD'
|
|
||||||
return 'example_login'
|
|
||||||
try:
|
try:
|
||||||
data = self.get_key_from_commandline(key_bitwarden, allow_multiple)
|
data = self.get_key_from_commandline(key_bitwarden, allow_multiple)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|
Loading…
Reference in a new issue