fix: resolve remaining ruff lint and mypy type errors
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bf04c77aa9
commit
ac002131d6
24 changed files with 219 additions and 57 deletions
|
|
@ -22,7 +22,7 @@ def test_parse_run_interval_minutes_accepts_valid_value() -> None:
|
|||
def test_parse_run_interval_minutes_rejects_below_minimum() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Check interval must be at least 15 minutes.",
|
||||
match=r"Check interval must be at least 15 minutes.",
|
||||
):
|
||||
parse_run_interval_minutes("14")
|
||||
|
||||
|
|
@ -34,7 +34,7 @@ def test_parse_request_delay_seconds_accepts_valid_value() -> None:
|
|||
def test_parse_request_delay_seconds_rejects_below_minimum() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Request delay must be at least 2 seconds.",
|
||||
match=r"Request delay must be at least 2 seconds.",
|
||||
):
|
||||
parse_request_delay_seconds("1")
|
||||
|
||||
|
|
@ -42,7 +42,7 @@ def test_parse_request_delay_seconds_rejects_below_minimum() -> None:
|
|||
def test_parse_run_interval_minutes_rejects_below_configured_minimum() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Check interval must be at least 30 minutes.",
|
||||
match=r"Check interval must be at least 30 minutes.",
|
||||
):
|
||||
parse_run_interval_minutes("29", minimum=30)
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ def test_parse_run_interval_minutes_rejects_below_configured_minimum() -> None:
|
|||
def test_parse_request_delay_seconds_rejects_below_configured_minimum() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Request delay must be at least 8 seconds.",
|
||||
match=r"Request delay must be at least 8 seconds.",
|
||||
):
|
||||
parse_request_delay_seconds("7", minimum=8)
|
||||
|
||||
|
|
@ -82,7 +82,7 @@ def test_parse_nav_visible_pages_accepts_valid_pages() -> None:
|
|||
def test_parse_nav_visible_pages_rejects_missing_required_pages() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Dashboard, Scholars, and Settings must remain visible.",
|
||||
match=r"Dashboard, Scholars, and Settings must remain visible.",
|
||||
):
|
||||
parse_nav_visible_pages(["dashboard", "publications"])
|
||||
|
||||
|
|
@ -90,6 +90,6 @@ def test_parse_nav_visible_pages_rejects_missing_required_pages() -> None:
|
|||
def test_parse_nav_visible_pages_rejects_unknown_page() -> None:
|
||||
with pytest.raises(
|
||||
UserSettingsServiceError,
|
||||
match="Unsupported navigation page id: reports",
|
||||
match=r"Unsupported navigation page id: reports",
|
||||
):
|
||||
parse_nav_visible_pages(DEFAULT_NAV_VISIBLE_PAGES + ["reports"])
|
||||
parse_nav_visible_pages([*DEFAULT_NAV_VISIBLE_PAGES, "reports"])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue