Merged in feature/tests (pull request #117)

Feature/tests

* improvetests

* generation

* simplifiedtesting

* simplifiedtesting

* longfile
This commit is contained in:
Michael McGuinness
2025-04-23 17:51:44 +00:00
parent 47fec079e5
commit bbe6f4188e
38 changed files with 4243128 additions and 616 deletions
+4 -2
View File
@@ -3,6 +3,7 @@ package documenttext
import (
"context"
"io"
"os"
"strings"
"testing"
"time"
@@ -49,8 +50,9 @@ func TestExecuteExtract(t *testing.T) {
EntityID: cleanId,
}
keyStr := key.String()
textractFile := "../../../assets/sampleGeneration/generated/helloWorld.gen"
textractBaseOut := getTextractFileResponse(t, textractFile)
root, err := os.OpenRoot("../../../assets")
require.NoError(t, err)
textractBaseOut := getTextractFileResponse(t, "sampleGeneration/generated/helloWorld.gen", root)
mimetype := repository.NullCleanmimetype{
Valid: true,