Merged in feature/tableandtests (pull request #119)
Stabilise tests and CNC_1 Sample * testspeedup * notyet * replacebits * noflake
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user