Merged in feature/tableandtests (pull request #119)

Stabilise tests and CNC_1 Sample

* testspeedup

* notyet

* replacebits

* noflake
This commit is contained in:
Michael McGuinness
2025-04-24 13:31:47 +00:00
parent 8b86b2baeb
commit d54c823d77
9 changed files with 901 additions and 922 deletions
+19
View File
@@ -137,6 +137,25 @@ func TestGetDocumentText(t *testing.T) {
assertReaders(t, txtFile, text)
})
// t.Run("sampleOne - chc_1", func(t *testing.T) {
// t.Parallel()
// cfg := DocTextConfig{}
// svc := Service{
// cfg: &cfg,
// }
// mockTextract := textractmock.NewMockTextractClient(t)
// cfg.TextractClient = mockTextract
// textractBaseOut, pdf, txtFile, close := getFiles(t, "sampleOne", "chc_1")
// defer close()
// textExpectations(t, mockTextract, textractBaseOut)
// text, err := svc.getDocumentText(ctx, pdf)
// require.NoError(t, err)
// assertReaders(t, txtFile, text)
// })
}
func getFiles(t testing.TB, sample string, filename string) (map[string][]textract.AnalyzeDocumentOutput, *documenttypes.PDF, *os.File, func()) {