File size: 677 Bytes
4514123
 
 
 
c175ac0
4514123
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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_seaaroundus_alias():
    py=(ROOT/"sidebar_catalog.py").read_text(encoding="utf-8")
    assert '"seaaroundus"' in py

def test_metadata_root_paths_are_auxiliary():
    py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8")
    assert '"metadata/"' in py
    assert '"preflight_reports/"' in py

def test_inventory_and_logbook_are_auxiliary_terms():
    py=(ROOT/"routes"/"datasets.py").read_text(encoding="utf-8")
    assert '"legacy_asset_inventory"' in py
    assert '"logbook_availability"' in py