mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Fix logging in tests
This commit is contained in:
@ -20,13 +20,13 @@ import docspell.convert.extern.OcrMyPdfConfig
|
||||
import docspell.convert.extern.{TesseractConfig, UnoconvConfig, WkHtmlPdfConfig}
|
||||
import docspell.convert.flexmark.MarkdownConfig
|
||||
import docspell.files.ExampleFiles
|
||||
import docspell.logging.{Level, Logger}
|
||||
import docspell.logging.TestLoggingConfig
|
||||
|
||||
import munit._
|
||||
|
||||
class ConversionTest extends FunSuite with FileChecks {
|
||||
class ConversionTest extends FunSuite with FileChecks with TestLoggingConfig {
|
||||
|
||||
val logger = Logger.simpleF[IO](System.err, Level.Info)
|
||||
val logger = docspell.logging.getLogger[IO]
|
||||
val target = File.path(Paths.get("target"))
|
||||
|
||||
val convertConfig = ConvertConfig(
|
||||
|
@ -11,12 +11,15 @@ import fs2.Stream
|
||||
|
||||
import docspell.common._
|
||||
import docspell.files.ExampleFiles
|
||||
import docspell.logging.{Level, Logger}
|
||||
import docspell.logging.{Logger, TestLoggingConfig}
|
||||
|
||||
import munit.CatsEffectSuite
|
||||
|
||||
class RemovePdfEncryptionTest extends CatsEffectSuite with FileChecks {
|
||||
val logger: Logger[IO] = Logger.simpleF[IO](System.err, Level.Info)
|
||||
class RemovePdfEncryptionTest
|
||||
extends CatsEffectSuite
|
||||
with FileChecks
|
||||
with TestLoggingConfig {
|
||||
val logger: Logger[IO] = docspell.logging.getLogger[IO]
|
||||
|
||||
private val protectedPdf =
|
||||
ExampleFiles.secured_protected_test123_pdf.readURL[IO](16 * 1024)
|
||||
|
@ -16,13 +16,13 @@ import fs2.io.file.Path
|
||||
import docspell.common._
|
||||
import docspell.convert._
|
||||
import docspell.files.ExampleFiles
|
||||
import docspell.logging.{Level, Logger}
|
||||
import docspell.logging.TestLoggingConfig
|
||||
|
||||
import munit._
|
||||
|
||||
class ExternConvTest extends FunSuite with FileChecks {
|
||||
class ExternConvTest extends FunSuite with FileChecks with TestLoggingConfig {
|
||||
val utf8 = StandardCharsets.UTF_8
|
||||
val logger = Logger.simpleF[IO](System.err, Level.Info)
|
||||
val logger = docspell.logging.getLogger[IO]
|
||||
val target = File.path(Paths.get("target"))
|
||||
|
||||
test("convert html to pdf") {
|
||||
|
Reference in New Issue
Block a user