Skip application for sections without approved edits
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
@@ -396,6 +397,14 @@ func TestRunnerProposalsExecutePerChunkSection(t *testing.T) {
|
||||
if len(out.ModuleResults) != 1 {
|
||||
t.Fatalf("expected one module result, got %+v", out.ModuleResults)
|
||||
}
|
||||
if !reflect.DeepEqual(out.FinalTranscript, transcript) || len(out.WorkUnits) != 3 {
|
||||
t.Fatalf("no-edit run changed the transcript or inventory: %+v", out)
|
||||
}
|
||||
for _, unit := range out.WorkUnits {
|
||||
if unit.State != outcomes.WorkCompleted || unit.CorrectionsApplied != 0 {
|
||||
t.Fatalf("no-edit section was not completed: %+v", unit)
|
||||
}
|
||||
}
|
||||
if len(seenBySection) != 3 {
|
||||
t.Fatalf("expected 3 chunked proposal calls, got %d", len(seenBySection))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user