Skip to content

Commit

Permalink
Fix KoskiDataHandlerTests
Browse files Browse the repository at this point in the history
  • Loading branch information
msiukola committed Dec 2, 2024
1 parent e1926f7 commit 2bd5ab7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4265,7 +4265,8 @@ class KoskiDataHandlerTest

it should "import arvosanat for kesken-tilainen nuorten perusopetuksen oppiaineen oppimäärä without erityinen suoritustapa" in {
// After tuva cutoff date is dynamic, let's update it to be a valid one JSON before parsing.
val startDate = new LocalDate(LocalDate.now().year().get() - 1, 8, 22)
KoskiUtil.deadlineDate = LocalDate.now().plusDays(1)
val startDate = new LocalDate(KoskiUtil.deadlineDate.year().get() - 1, 8, 22)
val dateStr = ISODateTimeFormat.date().print(startDate)
val json: String =
scala.io.Source
Expand All @@ -4290,7 +4291,6 @@ class KoskiDataHandlerTest
.suoritukset
.head
.arviointi shouldBe defined
KoskiUtil.deadlineDate = LocalDate.now().plusDays(30)

Await.result(
koskiDatahandler.processHenkilonTiedotKoskesta(
Expand Down

0 comments on commit 2bd5ab7

Please sign in to comment.