Compare commits

...

2 commits

Author SHA1 Message Date
3b72988cb5 bump: version 0.1.0a12 → 0.1.0a13 2025-02-19 09:27:51 +01:00
d3c0f94f86 fix: MOCK 2025-02-19 09:27:47 +01:00
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,9 @@
## 0.1.0a13 (2025-02-19)
### Fix
- MOCK
## 0.1.0a12 (2025-02-19) ## 0.1.0a12 (2025-02-19)
### Fix ### Fix

View file

@ -4,7 +4,7 @@ requires = ["flit_core >=3.8.0,<4"]
[project] [project]
name = "rougail.user_data_bitwarden" name = "rougail.user_data_bitwarden"
version = "0.1.0a12" version = "0.1.0a13"
authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}] authors = [{name = "Emmanuel Garette", email = "gnunux@gnunux.info"}]
readme = "README.md" readme = "README.md"
description = "Rougail user_data Bitwarden" description = "Rougail user_data Bitwarden"

View file

@ -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: