mirror of https://github.com/explosion/spaCy.git
Re-remove universe tests from test suite (#10357)
This commit is contained in:
parent
249b97184d
commit
b16da378bb
|
@ -9,7 +9,6 @@ keys/
|
||||||
spacy/tests/package/setup.cfg
|
spacy/tests/package/setup.cfg
|
||||||
spacy/tests/package/pyproject.toml
|
spacy/tests/package/pyproject.toml
|
||||||
spacy/tests/package/requirements.txt
|
spacy/tests/package/requirements.txt
|
||||||
spacy/tests/universe/universe.json
|
|
||||||
|
|
||||||
# Website
|
# Website
|
||||||
website/.cache/
|
website/.cache/
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -81,7 +81,6 @@ COPY_FILES = {
|
||||||
ROOT / "setup.cfg": PACKAGE_ROOT / "tests" / "package",
|
ROOT / "setup.cfg": PACKAGE_ROOT / "tests" / "package",
|
||||||
ROOT / "pyproject.toml": PACKAGE_ROOT / "tests" / "package",
|
ROOT / "pyproject.toml": PACKAGE_ROOT / "tests" / "package",
|
||||||
ROOT / "requirements.txt": PACKAGE_ROOT / "tests" / "package",
|
ROOT / "requirements.txt": PACKAGE_ROOT / "tests" / "package",
|
||||||
ROOT / "website" / "meta" / "universe.json": PACKAGE_ROOT / "tests" / "universe",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
import json
|
|
||||||
import re
|
|
||||||
from pathlib import Path
|
|
||||||
|
|
||||||
|
|
||||||
def test_universe_json():
|
|
||||||
|
|
||||||
root_dir = Path(__file__).parent
|
|
||||||
universe_file = root_dir / "universe.json"
|
|
||||||
|
|
||||||
with universe_file.open() as f:
|
|
||||||
universe_data = json.load(f)
|
|
||||||
for entry in universe_data["resources"]:
|
|
||||||
if "github" in entry:
|
|
||||||
assert not re.match(
|
|
||||||
r"^(http:)|^(https:)", entry["github"]
|
|
||||||
), "Github field should be user/repo, not a url"
|
|
Loading…
Reference in New Issue