wip(est-test): 개발 중 저장 3 — 깃 싱크(11-08)
This commit is contained in:
@@ -27,6 +27,25 @@ def test_progress_cannot_lock_when_previous_result_is_missing():
|
||||
assert result["rejected"]
|
||||
|
||||
|
||||
def test_progress_cannot_lock_when_previous_costs_are_missing():
|
||||
result = run(
|
||||
"math",
|
||||
"""(()=>{
|
||||
const p=EstNative.empty();
|
||||
p.tables.EstMainDat=[{PkID:1,Code:'R',GN:10,GU:100},{LinkIndex:54}];
|
||||
p.tables.Wonga=[{Gubun:'D',BaseField:'TC'},{LinkIndex:55,VSusic:'D'}];
|
||||
p.progress=[{id:'one',locked:true,inputs:{},result:{rows:[]}},
|
||||
{id:'two',inputs:{'1':{Gum:2}}}];
|
||||
const calculated=EstProgress.calculate(p,'two');
|
||||
let rejected=false;
|
||||
try { EstProgress.lock(p,'two'); } catch { rejected=true; }
|
||||
return {errors:calculated.errors,rejected};
|
||||
})()""",
|
||||
)
|
||||
assert any("전회 기성 원가 결과가 없습니다" in error for error in result["errors"])
|
||||
assert result["rejected"]
|
||||
|
||||
|
||||
def test_progress_rejects_ambiguous_inputs_without_applying_them_to_multiple_rows():
|
||||
result = run(
|
||||
"math",
|
||||
|
||||
Reference in New Issue
Block a user