1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-02-24 23:02:44 +00:00

Fix ImportFixture Tests

This commit is contained in:
Qstick 2021-04-02 00:53:05 -04:00
parent 2f4f7cbf34
commit 09c0ca9338

View file

@ -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();