From f09da06f80a95baed2fc9495469d356cadb7fe82 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 29 Jul 2023 07:48:47 +0300 Subject: [PATCH] More test fixes --- .../MetadataSource/BookInfo/BookInfoProxySearchFixture.cs | 6 +++--- .../MetadataSource/Goodreads/GoodreadsProxySearchFixture.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core.Test/MetadataSource/BookInfo/BookInfoProxySearchFixture.cs b/src/NzbDrone.Core.Test/MetadataSource/BookInfo/BookInfoProxySearchFixture.cs index 02b1cb5bee..2d3c8b05af 100644 --- a/src/NzbDrone.Core.Test/MetadataSource/BookInfo/BookInfoProxySearchFixture.cs +++ b/src/NzbDrone.Core.Test/MetadataSource/BookInfo/BookInfoProxySearchFixture.cs @@ -41,7 +41,7 @@ public void Setup() } [TestCase("Robert Harris", "Robert Harris")] - [TestCase("James Patterson", "James Patterson")] + [TestCase("Lyndsay Ely", "Lyndsay Ely")] [TestCase("Elisa Puricelli Guerra", "Elisa Puricelli Guerra")] public void successful_author_search(string title, string expected) { @@ -54,7 +54,7 @@ public void successful_author_search(string title, string expected) ExceptionVerification.IgnoreWarns(); } - [TestCase("Harry Potter and the sorcerer's stone", null, "Harry Potter and the Sorcerer's Stone")] + [TestCase("Harry Potter and the sorcerer's stone", null, "Harry Potter and the Sorcerer's Stone (Harry Potter, Book 1): By J.K. Rowling | The Complete Summary & Analysis")] [TestCase("edition:3", null, "Harry Potter and the Sorcerer's Stone")] [TestCase("edition: 3", null, "Harry Potter and the Sorcerer's Stone")] [TestCase("asin:B0192CTMYG", null, "Harry Potter and the Sorcerer's Stone")] @@ -86,7 +86,7 @@ public void no_author_search_result(string term) } [TestCase("Catherine Butler", 0, typeof(Author), new[] { "Catherine Butler" }, TestName = "author")] - [TestCase("Catherine Butler", 1, typeof(Book), new[] { "Shattered Dreams", "Shattered Dreams" }, TestName = "book")] + [TestCase("Catherine Butler", 1, typeof(Book), new[] { "Twisted Winter", "Shattered Dreams" }, TestName = "book")] public void successful_combined_search(string query, int position, Type resultType, string[] expected) { var result = Subject.SearchForNewEntity(query); diff --git a/src/NzbDrone.Core.Test/MetadataSource/Goodreads/GoodreadsProxySearchFixture.cs b/src/NzbDrone.Core.Test/MetadataSource/Goodreads/GoodreadsProxySearchFixture.cs index a5a7c56b2c..1866624fd8 100644 --- a/src/NzbDrone.Core.Test/MetadataSource/Goodreads/GoodreadsProxySearchFixture.cs +++ b/src/NzbDrone.Core.Test/MetadataSource/Goodreads/GoodreadsProxySearchFixture.cs @@ -25,7 +25,7 @@ public void Setup() } [TestCase("Robert Harris", 575)] - [TestCase("James Patterson", 3780)] + [TestCase("Lyndsay Ely", 8056539)] [TestCase("Elisa Puricelli Guerra", 4481805)] public void successful_author_search(string title, int expected) { @@ -38,7 +38,7 @@ public void successful_author_search(string title, int expected) ExceptionVerification.IgnoreWarns(); } - [TestCase("Harry Potter and the sorcerer's stone", 61209488)] + [TestCase("Harry Potter and the sorcerer's stone", 27425945)] [TestCase("B0192CTMYG", 61209488)] [TestCase("9780439554930", 48517161)] public void successful_book_search(string title, int expected)