mirror of
https://github.com/Radarr/Radarr
synced 2025-12-07 00:43:32 +01:00
Clean up media cover service fixture
This commit is contained in:
parent
49b0c9639c
commit
6d34f2afb1
1 changed files with 0 additions and 8 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using FizzWare.NBuilder;
|
using FizzWare.NBuilder;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
|
|
@ -60,13 +59,6 @@ public void should_convert_media_urls_to_local_without_time_if_file_doesnt_exist
|
||||||
new MediaCover.MediaCover { CoverType = MediaCoverTypes.Banner }
|
new MediaCover.MediaCover { CoverType = MediaCoverTypes.Banner }
|
||||||
};
|
};
|
||||||
|
|
||||||
var path = Path.Combine(TestContext.CurrentContext.TestDirectory, "Files", "Media", "NonExistant.mp4");
|
|
||||||
var fileInfo = new FileInfo(path);
|
|
||||||
|
|
||||||
Mocker.GetMock<IDiskProvider>()
|
|
||||||
.Setup(c => c.GetFileInfo(It.IsAny<string>()))
|
|
||||||
.Returns(fileInfo);
|
|
||||||
|
|
||||||
Subject.ConvertToLocalUrls(12, covers);
|
Subject.ConvertToLocalUrls(12, covers);
|
||||||
|
|
||||||
covers.Single().Url.Should().Be("/MediaCover/12/banner.jpg");
|
covers.Single().Url.Should().Be("/MediaCover/12/banner.jpg");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue