File size: 608 Bytes
450ac2f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Automated test validating paper LaTeX syntax and citations."""
from pathlib import Path
from tools.check_latex import validate_bib, validate_tex


def test_latex_paper_structure_and_citations():
    root = Path(__file__).resolve().parents[1]
    paper_dir = root / 'paper'
    tex_path = paper_dir / 'crosswire_formal_synthesis.tex'
    bib_path = paper_dir / 'references.bib'

    assert tex_path.exists(), f"Missing LaTeX paper at {tex_path}"
    assert bib_path.exists(), f"Missing bibliography at {bib_path}"

    bib_keys = validate_bib(bib_path)
    validate_tex(tex_path, bib_keys)