Fix logging in tests

This commit is contained in:
eikek
2022-02-19 23:33:01 +01:00
parent 8b42708db2
commit 9eb9497675
28 changed files with 130 additions and 76 deletions

View File

@ -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(

View File

@ -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)

View File

@ -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") {