test(pm): exclude catalog Hindsight from legacy extra selection
This commit is contained in:
@@ -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"]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user