Marco Ricci commited on 2024-10-10 13:34:25
Zeige 2 geänderte Dateien mit 4 Einfügungen und 3 Löschungen.
| ... | ... |
@@ -408,9 +408,9 @@ def _load_config() -> _types.VaultConfig: |
| 408 | 408 |
return data |
| 409 | 409 |
|
| 410 | 410 |
|
| 411 |
-def _migrate_and_load_old_config() -> ( |
|
| 412 |
- tuple[_types.VaultConfig, OSError | None] |
|
| 413 |
-): |
|
| 411 |
+def _migrate_and_load_old_config() -> tuple[ |
|
| 412 |
+ _types.VaultConfig, OSError | None |
|
| 413 |
+]: |
|
| 414 | 414 |
"""Load and migrate a vault(1)-compatible config. |
| 415 | 415 |
|
| 416 | 416 |
The (old) filename is obtained via [`_config_filename`][]. This |
| ... | ... |
@@ -611,6 +611,7 @@ class TestCLI: |
| 611 | 611 |
assert result.clean_exit(empty_stderr=True), 'expected clean exit' |
| 612 | 612 |
assert config2 == config, 'config not imported correctly' |
| 613 | 613 |
|
| 614 |
+ @tests.hypothesis_settings_coverage_compatible |
|
| 614 | 615 |
@hypothesis.given( |
| 615 | 616 |
conf=tests.smudged_vault_test_config( |
| 616 | 617 |
strategies.sampled_from(TEST_CONFIGS).filter( |
| 617 | 618 |