Skip to content

The agent that grows with you

test(pm): exclude catalog Hindsight from legacy extra selection

fangliquan425c5c116783
diff --git a/tests/pm/test_extras.py b/tests/pm/test_extras.py
index 727583094a2..e2aa79f2176 100644
--- a/tests/pm/test_extras.py
+++ b/tests/pm/test_extras.py
@@ -126,7 +126,6 @@ def test_available_missing_module():
@pytest.mark.parametrize(("extra", "module"), [
- ("hindsight", "hindsight_client"),
("teams", "microsoft_teams.apps"),
])
def test_available_counts_sys_modules_fakes(monkeypatch, extra, module):
@@ -230,6 +229,7 @@ def test_legacy_selection_carries_extras_the_main_era_venv_lazily_installed(monk
(site / "google").mkdir()
(site / "google" / "auth").mkdir()
(site / "exa_py.cpython-311-x86_64-linux-gnu.so").write_bytes(b"")
+ (site / "hindsight_client").mkdir()
selection = extras.legacy_selection(tmp_path)
@@ -237,6 +237,7 @@ def test_legacy_selection_carries_extras_the_main_era_venv_lazily_installed(monk
assert {"fal", "telegram", "vertex", "exa"} <= set(selection)
assert "messaging" not in selection
assert "piper" not in selection
+ assert "hindsight" not in selection # Catalog plugin owns this dependency, not a core extra.
assert extras.legacy_selection(tmp_path / "no-venv") == ["all"]