mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-24 23:02:44 +00: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 @@ private RemoteAlbum BuildRemoteAlbum()
|
|||
|
||||
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 @@ public void should_mark_as_imported_if_the_download_can_be_tracked_using_the_sou
|
|||
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…
Reference in a new issue