Marco Ricci commited on 2026-06-15 18:20:15
Zeige 2 geänderte Dateien mit 9 Einfügungen und 10 Löschungen.
| ... | ... |
@@ -29,7 +29,8 @@ mark_only = cast("DiagnosticText", "<mark only>")
|
| 29 | 29 |
|
| 30 | 30 |
def _replace_known_metavars(string: str) -> str: |
| 31 | 31 |
return ( |
| 32 |
- string.replace( |
|
| 32 |
+ string |
|
| 33 |
+ .replace( |
|
| 33 | 34 |
"{service_metavar!s}",
|
| 34 | 35 |
cli_messages.Label.VAULT_METAVAR_SERVICE.value.singular, |
| 35 | 36 |
) |
| ... | ... |
@@ -178,7 +179,8 @@ def _check_manpagedoc( |
| 178 | 179 |
): |
| 179 | 180 |
name = cast( |
| 180 | 181 |
"EnumName", |
| 181 |
- line.removeprefix("<!-- Message-ID (mark only):")
|
|
| 182 |
+ line |
|
| 183 |
+ .removeprefix("<!-- Message-ID (mark only):")
|
|
| 182 | 184 |
.removesuffix("-->")
|
| 183 | 185 |
.strip(), |
| 184 | 186 |
) |
| ... | ... |
@@ -186,7 +188,8 @@ def _check_manpagedoc( |
| 186 | 188 |
elif line.startswith("<!-- Message-ID:") and line.endswith("-->"):
|
| 187 | 189 |
name = cast( |
| 188 | 190 |
"EnumName", |
| 189 |
- line.removeprefix("<!-- Message-ID:")
|
|
| 191 |
+ line |
|
| 192 |
+ .removeprefix("<!-- Message-ID:")
|
|
| 190 | 193 |
.removesuffix("-->")
|
| 191 | 194 |
.strip(), |
| 192 | 195 |
) |
| ... | ... |
@@ -33,25 +33,21 @@ startup_ssh_auth_sock = os.environ.get("SSH_AUTH_SOCK", None)
|
| 33 | 33 |
def pytest_configure(config: pytest.Config) -> None: |
| 34 | 34 |
"""Configure `pytest`: add custom markers.""" |
| 35 | 35 |
config.addinivalue_line( |
| 36 |
- "markers", |
|
| 37 |
- ( |
|
| 38 |
- "heavy_duty: " |
|
| 39 |
- "mark test as a slow, heavy-duty test" |
|
| 40 |
- ) |
|
| 36 |
+ "markers", ("heavy_duty: mark test as a slow, heavy-duty test")
|
|
| 41 | 37 |
) |
| 42 | 38 |
config.addinivalue_line( |
| 43 | 39 |
"markers", |
| 44 | 40 |
( |
| 45 | 41 |
"correctness_focused: " |
| 46 | 42 |
"mark test as a potentially slow, correctness-focused test" |
| 47 |
- ) |
|
| 43 |
+ ), |
|
| 48 | 44 |
) |
| 49 | 45 |
config.addinivalue_line( |
| 50 | 46 |
"markers", |
| 51 | 47 |
( |
| 52 | 48 |
"non_reentrant_agent: " |
| 53 | 49 |
"mark the agent (fixture output) as non-reentrant" |
| 54 |
- ) |
|
| 50 |
+ ), |
|
| 55 | 51 |
) |
| 56 | 52 |
hypothesis_machinery._hypothesis_settings_setup() |
| 57 | 53 |
|
| 58 | 54 |