mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-10 09:32:13 +01:00
adding merge printer tests
This commit is contained in:
@@ -8,6 +8,11 @@ import (
|
||||
"github.com/thecodingmachine/gotenberg/internal/pkg/xrand"
|
||||
)
|
||||
|
||||
/*
|
||||
testdataDirectoryPath should be
|
||||
the absolute of the testdata INSIDE
|
||||
the Docker image.
|
||||
*/
|
||||
const testdataDirectoryPath string = "/gotenberg/tests/test/testdata"
|
||||
|
||||
// GenerateDestination simply generates
|
||||
@@ -16,6 +21,15 @@ func GenerateDestination() string {
|
||||
return fmt.Sprintf("/tmp/%s.pdf", xrand.Get())
|
||||
}
|
||||
|
||||
// MergeFpaths return the paths
|
||||
// of the PDF files used in tests.
|
||||
func MergeFpaths(t *testing.T) []string {
|
||||
return []string{
|
||||
fpath(t, "pdf", "gotenberg.pdf"),
|
||||
fpath(t, "pdf", "gotenberg_bis.pdf"),
|
||||
}
|
||||
}
|
||||
|
||||
// OfficeFpaths return the paths
|
||||
// of the Office documents used in tests.
|
||||
func OfficeFpaths(t *testing.T) []string {
|
||||
|
||||
Reference in New Issue
Block a user