squid-main-space / tests /test_noaa_ramldb_roles_v465.py
Zin299's picture
Deploy v4.6.20 agent reliability fixes
c175ac0
Raw
History Blame
777 Bytes
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_noaa_and_ramldb_aliases():
py=(ROOT/"sidebar_catalog.py").read_text(encoding="utf-8")
assert '"NOAA"' in py
assert '"ramldb"' in py
for term in ("dismap","neus_fal","neus_spr"):
assert term in py
def test_role_path_rules_cover_observed_files():
py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8")
for term in ("changelog","qaqc","entry guide","核验记录","/db documents/"):
assert term in py
def test_docx_is_auxiliary():
py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8")
assert '".docx"' in py
assert 'return "auxiliary"' in py