fix: MOCK
This commit is contained in:
parent
80b1155d2a
commit
d3c0f94f86
1 changed files with 3 additions and 1 deletions
|
@ -158,7 +158,9 @@ 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:
|
||||||
return ['example_login'], 'Ex4mpL3_P4ssw0rD'
|
if allow_multiple:
|
||||||
|
return ['example_login'], ['Ex4mpL3_P4ssw0rD']
|
||||||
|
return 'example_login', 'Ex4mpL3_P4ssw0rD'
|
||||||
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