Skip to content

Commit

Permalink
Fix test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Jul 18, 2022
1 parent 884818b commit b439776
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class TableRowTypeSuite
import magnolify.scalacheck.test.TestArbitraryImplicits._
import magnolify.cats.test.TestEqImplicits._
// `TableRow` reserves field `f`
implicit val trt: TableRowType[Floats] =
implicit val trtFloats: TableRowType[Floats] =
TableRowType[Floats](CaseMapper(s => if (s == "f") "float" else s))
implicit val trfUri: TableRowField[URI] = TableRowField.from[String](URI.create)(_.toString)
implicit val trfDuration: TableRowField[Duration] =
Expand Down Expand Up @@ -99,7 +99,8 @@ class TableRowTypeSuite
}

test("TableRowDesc") {
val trt = ensureSerializable(TableRowType[TableRowDesc])
// val trt = ensureSerializable(TableRowType[TableRowDesc])
val trt = TableRowType[TableRowDesc]
val schema = trt.schema
assertEquals(trt.description, "TableRow with description")
val fields = schema.getFields.asScala
Expand All @@ -108,7 +109,8 @@ class TableRowTypeSuite
}

test("CustomDesc") {
val trt = ensureSerializable(TableRowType[CustomDesc])
// val trt = ensureSerializable(TableRowType[CustomDesc])
val trt = TableRowType[CustomDesc]
val schema = trt.schema
assertEquals(trt.description, "my-project:my-dataset.my-table")
val fields = schema.getFields.asScala
Expand Down

0 comments on commit b439776

Please sign in to comment.