aboutsummaryrefslogtreecommitdiff
path: root/tests/test_optional_dependencies.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-12 19:57:08 +0100
committerDennis Fink2026-11-12 19:57:08 +0100
commit4bd1d9e348918b2e55db47a1ac3489d035cf55e2 (patch)
treef7ed41a374a8a4136792039a262dc62aa8cf8c59 /tests/test_optional_dependencies.py
parent7035e9f9467684cccae2b7ff3faaa62e6a9f91aa (diff)
downloadwebmentions-ssg-4bd1d9e348918b2e55db47a1ac3489d035cf55e2.tar.gz
webmentions-ssg-4bd1d9e348918b2e55db47a1ac3489d035cf55e2.zip
refactor(core): split modules by responsibility
Break up monolithic views, task helpers, networking, CLI, and application extension setup so each module owns a focused concern. Reorganize the test suite around the new boundaries while preserving existing Webmention behavior and coverage.
Diffstat (limited to 'tests/test_optional_dependencies.py')
-rw-r--r--tests/test_optional_dependencies.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/test_optional_dependencies.py b/tests/test_optional_dependencies.py
deleted file mode 100644
index 40c53c5..0000000
--- a/tests/test_optional_dependencies.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
-#
-# SPDX-License-Identifier: BSD-3-Clause
-
-"""Check optional client dependencies for supported storage backends."""
-
-import tomllib
-from pathlib import Path
-
-import pytest
-
-
-BACKENDS = {
- "redis": ["flask-limiter[redis]>=4.1.1", "huey[redis]>=3.3.0"],
- "valkey": ["flask-limiter[valkey]>=4.1.1", "huey[redis]>=3.3.0"],
- "memcached": ["flask-limiter[memcached]>=4.1.1"],
- "mongodb": ["flask-limiter[mongodb]>=4.1.1"],
- "postgres": ["huey[postgres]>=3.1.0"],
-}
-
-
-@pytest.mark.parametrize("backend", BACKENDS)
-def test_storage_backend_has_matching_extra_and_uv_group(backend: str) -> None:
- project_root = Path(__file__).resolve().parents[1]
- metadata = tomllib.loads((project_root / "pyproject.toml").read_text())
-
- expected = BACKENDS[backend]
- assert metadata["project"]["optional-dependencies"][backend] == expected
- assert metadata["dependency-groups"][backend] == expected
- assert metadata["tool"]["uv"]["default-groups"] == ["dev", "test"]
-
-
-def test_no_legacy_ratelimit_only_groups() -> None:
- project_root = Path(__file__).resolve().parents[1]
- metadata = tomllib.loads((project_root / "pyproject.toml").read_text())
- assert not any(
- group.startswith("ratelimit-") for group in metadata["dependency-groups"]
- )