from pathlib import Path ROOT=Path(__file__).resolve().parents[1] def test_version(): assert (ROOT/'VERSION').read_text(encoding='utf-8').strip()=='4.6.20' def test_reference_and_reproducibility_are_auxiliary(): py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8") for term in ('"reference/"','"reproducibility/"','"source_registry"','"taxonomy"','"crosswalk"','"build_provenance"'): assert term in py def test_paper_supplement_path_is_auxiliary(): py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8") assert '"论文补充/"' in py