Compare commits

...

1 Commits

Author SHA1 Message Date
stirlingbot[bot]
02c75aea95 📁 pre-commit
Signed-off-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com>
2025-02-24 00:14:27 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ public class RuntimePathConfig {
this.pipelineDefaultWebUiConfigs = webUiConfigsPath;
boolean isDocker = isRunningInDocker();
// Initialize Operation paths
String weasyPrintPath = isDocker ? "/opt/venv/bin/weasyprint" : "weasyprint";
String unoConvertPath = isDocker ? "/opt/venv/bin/unoconvert" : "unoconvert";
@@ -78,9 +78,9 @@ public class RuntimePathConfig {
this.weasyPrintPath = weasyPrintPath;
this.unoConvertPath = unoConvertPath;
}
private boolean isRunningInDocker() {
return Files.exists(Paths.get("/.dockerenv"));
}
}

View File

@@ -21,7 +21,7 @@ public class ConvertWebsiteToPdfTest {
@Mock
private RuntimePathConfig runtimePathConfig;
private ConvertWebsiteToPDF convertWebsiteToPDF;
@BeforeEach