MCPcopy
hub / github.com/explosion/spaCy / test_validate_compatibility_table

Function test_validate_compatibility_table

spacy/tests/test_cli.py:703–711  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

701
702
703def test_validate_compatibility_table():
704 spec = SpecifierSet("==" + about.__version__)
705 spec.prereleases = False
706 if about.__version__ in spec:
707 model_pkgs, compat = get_model_pkgs()
708 spacy_version = get_minor_version(about.__version__)
709 current_compat = compat.get(spacy_version, {})
710 assert len(current_compat) > 0
711 assert "en_core_web_sm" in current_compat
712
713
714@pytest.mark.parametrize("component_name", ["ner", "textcat", "spancat", "tagger"])

Callers

nothing calls this directly

Calls 3

get_model_pkgsFunction · 0.90
get_minor_versionFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…