Zion Boggan
repos/Oversight/tests/test_source_comment_style.py
zionboggan.com ↗
17 lines · python
History for this file →
1
import subprocess
2
import sys
3
from pathlib import Path
4
 
5
 
6
ROOT = Path(__file__).resolve().parents[1]
7
 
8
 
9
def test_strict_source_paths_are_comment_light():
10
    result = subprocess.run(
11
        [sys.executable, "scripts/check_source_comments.py"],
12
        cwd=ROOT,
13
        text=True,
14
        capture_output=True,
15
        check=False,
16
    )
17
    assert result.returncode == 0, result.stdout + result.stderr