Remove FetchRecent, Pass Cats back on Newznab Search

This commit is contained in:
Qstick
2020-11-18 16:46:24 -05:00
parent 6100adc515
commit 710b4f5ec6
22 changed files with 70 additions and 137 deletions

View File

@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using FluentAssertions;
using Moq;
using NUnit.Framework;
@@ -6,6 +6,7 @@ using NzbDrone.Common.Http;
using NzbDrone.Common.Serializer;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Indexers.PassThePopcorn;
using NzbDrone.Core.IndexerSearch.Definitions;
using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Test.Framework;
@@ -41,7 +42,7 @@ namespace NzbDrone.Core.Test.IndexerTests.PTPTests
.Setup(o => o.Execute(It.Is<HttpRequest>(v => v.Method == HttpMethod.GET)))
.Returns<HttpRequest>(r => new HttpResponse(r, new HttpHeader { ContentType = HttpAccept.Json.Value }, responseJson));
var torrents = Subject.FetchRecent();
var torrents = Subject.Fetch(new MovieSearchCriteria());
torrents.Should().HaveCount(293);
torrents.First().Should().BeOfType<PassThePopcornInfo>();