Beispiel #1
0
def test_download_compatibility():
    spec = SpecifierSet("==" + about.__version__)
    spec.prereleases = False
    if about.__version__ in spec:
        model_name = "en_core_web_sm"
        compatibility = get_compatibility()
        version = get_version(model_name, compatibility)
        assert get_minor_version(about.__version__) == get_minor_version(version)
Beispiel #2
0
def test_download_compatibility():
    model_name = "en_core_web_sm"
    compatibility = get_compatibility()
    version = get_version(model_name, compatibility)
    assert get_minor_version(about.__version__) == get_minor_version(version)