From be570fc892ad2a2885450df4f4812a1e0dabdbb4 Mon Sep 17 00:00:00 2001 From: Nihal Mirpuri Date: Mon, 20 Nov 2023 17:02:49 +0000 Subject: [PATCH] update test --- src/test/scala/plex/PlexUtilsSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/scala/plex/PlexUtilsSpec.scala b/src/test/scala/plex/PlexUtilsSpec.scala index dc330d1..48f9c3b 100644 --- a/src/test/scala/plex/PlexUtilsSpec.scala +++ b/src/test/scala/plex/PlexUtilsSpec.scala @@ -72,7 +72,7 @@ class PlexUtilsSpec extends AnyFlatSpec with Matchers with PlexUtils with MockFa ).returning(IO.pure(parse(Source.fromResource("self-watchlist-from-token.json").getLines().mkString("\n")))).once() (mockClient.httpRequest _).expects( Method.GET, - Uri.unsafeFromString("https://discover.provider.plex.tv/library/metadata/5df46a38237002001dce338d/children?X-Plex-Token=test-token"), + Uri.unsafeFromString("https://discover.provider.plex.tv/library/metadata/5df46a38237002001dce338d?X-Plex-Token=test-token"), None, None ).returning(IO.pure(parse(Source.fromResource("single-item-plex-metadata.json").getLines().mkString("\n")))).once() @@ -88,7 +88,7 @@ class PlexUtilsSpec extends AnyFlatSpec with Matchers with PlexUtils with MockFa eitherResult shouldBe a[Right[_, _]] val result = eitherResult.getOrElse(Set.empty[Item]) result.size shouldBe 2 - result.head shouldBe Item("The Test", List("imdb://tt15789472", "tmdb://1151534", "tvdb://347900"), "show") + result.head shouldBe Item("The Test", List("imdb://tt11347692", "tmdb://95837", "tvdb://372848"), "show") } private def createConfiguration(plexToken: Option[String]): Configuration = Configuration(