Fix ImportFixture Tests

pull/2154/head
Qstick 4 years ago
parent 2f4f7cbf34
commit 09c0ca9338

@ -89,7 +89,6 @@ namespace NzbDrone.Core.Test.Download.CompletedDownloadServiceTests
private void GivenABadlyNamedDownload()
{
_trackedDownload.RemoteAlbum.Artist = null;
_trackedDownload.DownloadItem.DownloadId = "1234";
_trackedDownload.DownloadItem.Title = "Droned Pilot"; // Set a badly named download
Mocker.GetMock<IHistoryService>()
@ -376,6 +375,10 @@ namespace NzbDrone.Core.Test.Download.CompletedDownloadServiceTests
new ImportResult(new ImportDecision<LocalTrack>(new LocalTrack { Path = @"C:\TestPath\Droned.S01E01.mkv".AsOsAgnostic() }))
});
Mocker.GetMock<IArtistService>()
.Setup(v => v.GetArtist(It.IsAny<int>()))
.Returns(BuildRemoteAlbum().Artist);
Subject.Import(_trackedDownload);
AssertImported();

Loading…
Cancel
Save