mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
Fix ImportFixture Tests
This commit is contained in:
parent
2f4f7cbf34
commit
09c0ca9338
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue