From 200be6451ab6ef011c9e272ed3bfe0947d41a9e8 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 8 Oct 2023 12:40:04 -0500 Subject: [PATCH] fixup! Remove db calls from list threads --- .../FetchAndParseImportListServiceFixture.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/NzbDrone.Core.Test/ImportListTests/FetchAndParseImportListServiceFixture.cs b/src/NzbDrone.Core.Test/ImportListTests/FetchAndParseImportListServiceFixture.cs index e89ed32d7..e6504abb7 100644 --- a/src/NzbDrone.Core.Test/ImportListTests/FetchAndParseImportListServiceFixture.cs +++ b/src/NzbDrone.Core.Test/ImportListTests/FetchAndParseImportListServiceFixture.cs @@ -7,8 +7,6 @@ using Moq; using NUnit.Framework; using NzbDrone.Core.ImportLists; using NzbDrone.Core.ImportLists.ImportListMovies; -using NzbDrone.Core.MetadataSource; -using NzbDrone.Core.Movies; using NzbDrone.Core.Test.Framework; namespace NzbDrone.Core.Test.ImportListTests @@ -36,10 +34,6 @@ namespace NzbDrone.Core.Test.ImportListTests _listMovies = Builder.CreateListOfSize(5) .Build().ToList(); - - Mocker.GetMock() - .Setup(v => v.MapMovieToTmdbMovie(It.IsAny())) - .Returns(m => new MovieMetadata { TmdbId = m.TmdbId }); } private void GivenList(int id, bool enabled, bool enabledAuto, ImportListFetchResult fetchResult) @@ -135,9 +129,6 @@ namespace NzbDrone.Core.Test.ImportListTests var listResult = Subject.Fetch(); listResult.AnyFailure.Should().BeFalse(); - - Mocker.GetMock() - .Verify(v => v.SyncMoviesForList(It.IsAny>(), listId), Times.Once()); } [Test] @@ -149,9 +140,6 @@ namespace NzbDrone.Core.Test.ImportListTests var listResult = Subject.Fetch(); listResult.AnyFailure.Should().BeTrue(); - - Mocker.GetMock() - .Verify(v => v.SyncMoviesForList(It.IsAny>(), listId), Times.Never()); } [Test] @@ -166,9 +154,6 @@ namespace NzbDrone.Core.Test.ImportListTests var listResult = Subject.Fetch(); listResult.AnyFailure.Should().BeTrue(); - - Mocker.GetMock() - .Verify(v => v.SyncMoviesForList(It.IsAny>(), passedListId), Times.Once()); } [Test]