File size: 804 Bytes
27e5ee1
1c69684
 
27e5ee1
 
1c69684
 
27e5ee1
 
 
18eb221
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from src.worker_payload import LONGCAT_ARTICLE_WORKER_SCRIPT


def test_longcat_worker_payload_compiles():
    compile(LONGCAT_ARTICLE_WORKER_SCRIPT, "longcat_worker.py", "exec")


def test_longcat_worker_sanitizes_short_description():
    assert 'value = "LongCat video avatar demo"' in LONGCAT_ARTICLE_WORKER_SCRIPT
    assert 'new_text = "---\\n" + "\\n".join' in LONGCAT_ARTICLE_WORKER_SCRIPT


def test_longcat_v9_full_inference_gate_contract():
    assert "full-inference-gated" in LONGCAT_ARTICLE_WORKER_SCRIPT
    assert "TECHNICAL_BLOCKERS.json" in LONGCAT_ARTICLE_WORKER_SCRIPT
    assert "kernels-community/flash-attn2" in LONGCAT_ARTICLE_WORKER_SCRIPT
    assert "infer_generation_gate" in LONGCAT_ARTICLE_WORKER_SCRIPT
    assert "diagnostic report instead" in LONGCAT_ARTICLE_WORKER_SCRIPT