Marco Ricci commited on 2025-02-10 00:23:34
Zeige 1 geänderte Dateien mit 6 Einfügungen und 1 Löschungen.
This includes the use of static strings instead of package constants, and the clearing of captured logs between different hypothesis iterations.
... | ... |
@@ -2233,6 +2233,8 @@ class TestCLI: |
2233 | 2233 |
config = conf.config |
2234 | 2234 |
config2 = copy.deepcopy(config) |
2235 | 2235 |
_types.clean_up_falsy_vault_config_values(config2) |
2236 |
+ # Reset caplog between hypothesis runs. |
|
2237 |
+ caplog.clear() |
|
2236 | 2238 |
runner = click.testing.CliRunner(mix_stderr=False) |
2237 | 2239 |
# TODO(the-13th-letter): Rewrite using parenthesized |
2238 | 2240 |
# with-statements. |
... | ... |
@@ -2637,9 +2639,12 @@ class TestCLI: |
2637 | 2639 |
notes: str, |
2638 | 2640 |
) -> None: |
2639 | 2641 |
"""Editing notes works.""" |
2642 |
+ marker = cli_messages.TranslatedString( |
|
2643 |
+ cli_messages.Label.DERIVEPASSPHRASE_VAULT_NOTES_MARKER |
|
2644 |
+ ) |
|
2640 | 2645 |
edit_result = f""" |
2641 | 2646 |
|
2642 |
-# - - - - - >8 - - - - - >8 - - - - - >8 - - - - - >8 - - - - - |
|
2647 |
+{marker} |
|
2643 | 2648 |
{notes} |
2644 | 2649 |
""" |
2645 | 2650 |
# Reset caplog between hypothesis runs. |
2646 | 2651 |