mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-25 08:45:04 +00:00
Update munit to 1.0.0, munit-cats-effect to 2.0.0
This commit is contained in:
parent
870bfd9cf0
commit
9c910d262e
@ -55,7 +55,7 @@ trait Fixtures extends TestLoggingConfig { self: CatsEffectSuite =>
|
||||
Path(s"/tmp/target/test-temp")
|
||||
|
||||
val tempDir =
|
||||
ResourceFixture[Path](
|
||||
ResourceFunFixture[Path](
|
||||
Resource.eval(Files[IO].createDirectories(baseTempDir)) *>
|
||||
Files[IO]
|
||||
.tempDirectory(baseTempDir.some, "run-", PosixPermissions.fromOctal("777"))
|
||||
|
@ -16,7 +16,7 @@ import munit.CatsEffectSuite
|
||||
|
||||
class DirectoryTest extends CatsEffectSuite with TestLoggingConfig {
|
||||
val logger = docspell.logging.getLogger[IO]
|
||||
val tempDir = ResourceFixture(
|
||||
val tempDir = ResourceFunFixture(
|
||||
Files[IO].tempDirectory(Path("target").some, "directory-test-", None)
|
||||
)
|
||||
|
||||
|
@ -19,7 +19,7 @@ import munit._
|
||||
|
||||
class ZipTest extends CatsEffectSuite with TestLoggingConfig {
|
||||
val logger = docspell.logging.getLogger[IO]
|
||||
val tempDir = ResourceFixture(
|
||||
val tempDir = ResourceFunFixture(
|
||||
Files[IO].tempDirectory(Path("target").some, "zip-test-", None)
|
||||
)
|
||||
|
||||
|
@ -20,9 +20,9 @@ import org.typelevel.ci._
|
||||
|
||||
trait Fixtures extends HttpClientOps { self: CatsEffectSuite =>
|
||||
|
||||
val pubsubEnv = ResourceFixture(Fixtures.envResource("node-1"))
|
||||
val pubsubEnv = ResourceFunFixture(Fixtures.envResource("node-1"))
|
||||
|
||||
val pubsubT = ResourceFixture {
|
||||
val pubsubT = ResourceFunFixture {
|
||||
Fixtures
|
||||
.envResource("node-1")
|
||||
.flatMap(_.pubSub)
|
||||
|
@ -66,7 +66,7 @@ trait DatabaseTest
|
||||
} yield res
|
||||
)
|
||||
|
||||
lazy val newH2DataSource = ResourceFixture(for {
|
||||
lazy val newH2DataSource = ResourceFunFixture(for {
|
||||
jdbc <- Resource.eval(IO(StoreFixture.memoryDB(UUID.randomUUID().toString)))
|
||||
ds <- StoreFixture.dataSource(jdbc)
|
||||
} yield (jdbc, ds))
|
||||
|
@ -26,7 +26,7 @@ trait StoreFixture extends CatsEffectFunFixtures { self: CatsEffectSuite =>
|
||||
def schemaMigrateConfig =
|
||||
StoreFixture.schemaMigrateConfig
|
||||
|
||||
val xa = ResourceFixture {
|
||||
val xa = ResourceFunFixture {
|
||||
val cfg = StoreFixture.memoryDB("test")
|
||||
for {
|
||||
ds <- StoreFixture.dataSource(cfg)
|
||||
@ -35,7 +35,7 @@ trait StoreFixture extends CatsEffectFunFixtures { self: CatsEffectSuite =>
|
||||
} yield xa
|
||||
}
|
||||
|
||||
val store = ResourceFixture {
|
||||
val store = ResourceFunFixture {
|
||||
val cfg = StoreFixture.memoryDB("test")
|
||||
for {
|
||||
store <- StoreFixture.store(cfg)
|
||||
|
@ -33,8 +33,8 @@ object Dependencies {
|
||||
val Log4sVersion = "1.10.0"
|
||||
val LogbackVersion = "1.2.10"
|
||||
val MariaDbVersion = "3.4.0"
|
||||
val MUnitVersion = "0.7.29"
|
||||
val MUnitCatsEffectVersion = "1.0.7"
|
||||
val MUnitVersion = "1.0.0"
|
||||
val MUnitCatsEffectVersion = "2.0.0"
|
||||
val PdfboxVersion = "3.0.2"
|
||||
val PdfjsViewerVersion = "2.12.313"
|
||||
val PoiVersion = "4.1.2"
|
||||
@ -49,7 +49,7 @@ object Dependencies {
|
||||
val TikaVersion = "2.9.2"
|
||||
val YamuscaVersion = "0.10.0"
|
||||
val SwaggerUIVersion = "5.17.11"
|
||||
val TestContainerVersion = "0.40.14"
|
||||
val TestContainerVersion = "0.41.3"
|
||||
val TwelveMonkeysVersion = "3.10.1"
|
||||
val JQueryVersion = "3.5.1"
|
||||
|
||||
@ -326,7 +326,7 @@ object Dependencies {
|
||||
val munit = Seq(
|
||||
"org.scalameta" %% "munit" % MUnitVersion,
|
||||
"org.scalameta" %% "munit-scalacheck" % MUnitVersion,
|
||||
"org.typelevel" %% "munit-cats-effect-3" % MUnitCatsEffectVersion
|
||||
"org.typelevel" %% "munit-cats-effect" % MUnitCatsEffectVersion
|
||||
)
|
||||
|
||||
val kindProjectorPlugin = "org.typelevel" %% "kind-projector" % KindProjectorVersion
|
||||
|
Loading…
x
Reference in New Issue
Block a user