Compare commits
2 commits
b9ca551fc0
...
952069a865
| Author | SHA1 | Date | |
|---|---|---|---|
| 952069a865 | |||
| 5e66d2074d |
3 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
## 5.0.0rc0 (2024-10-31)
|
## 5.0.0rc0 (2024-11-01)
|
||||||
|
|
||||||
### Feat
|
### Feat
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1046,12 +1046,12 @@ def test_validator_error_prefix():
|
||||||
try:
|
try:
|
||||||
cfg.option('b').value.set(1)
|
cfg.option('b').value.set(1)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
assert str(err) == _('"{0}" is an invalid {1} for "{2}"').format('1', _('integer'), 'b') + ', ' + _('value is identical to {}').format('"a"')
|
assert str(err) == _('"{0}" is an invalid {1} for "{2}"').format('1', _('integer'), 'b') + ', ' + _('value is identical to {0}').format('"a"')
|
||||||
try:
|
try:
|
||||||
cfg.option('b').value.set(1)
|
cfg.option('b').value.set(1)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
err.prefix = ''
|
err.prefix = ''
|
||||||
assert str(err) == _('value is identical to {}').format('"a"')
|
assert str(err) == _('value is identical to {0}').format('"a"')
|
||||||
# assert not list_sessions()
|
# assert not list_sessions()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,6 @@
|
||||||
from gettext import translation
|
from gettext import translation
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
t = translation('tiramisu', str(Path(__file__).parent / 'locale'))
|
t = translation('tiramisu', str(Path(__file__).parent / 'locale'), fallback=True)
|
||||||
|
|
||||||
_ = t.gettext
|
_ = t.gettext
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue