mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
fixed more tests.
This commit is contained in:
@@ -55,10 +55,10 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
.Setup(e => e.BuildFilePath(It.IsAny<Series>(), fakeEpisode.First().SeasonNumber, filename, ".avi"))
|
||||
.Returns(fi);
|
||||
|
||||
|
||||
|
||||
var result = Subject.MoveEpisodeFile(file, false);
|
||||
|
||||
|
||||
|
||||
result.Should().BeNull();
|
||||
}
|
||||
|
||||
@@ -85,8 +85,7 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
var file = Builder<EpisodeFile>.CreateNew()
|
||||
.With(f => f.SeriesId = fakeSeries.Id)
|
||||
.With(f => f.Path = currentFilename)
|
||||
.With(f => f.Quality = Quality.WEBDL720p)
|
||||
.With(f => f.Proper = false)
|
||||
.With(f => f.Quality = new QualityModel(Quality.WEBDL720p))
|
||||
.Build();
|
||||
|
||||
Mocker.GetMock<ISeriesRepository>()
|
||||
@@ -137,8 +136,7 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
var file = Builder<EpisodeFile>.CreateNew()
|
||||
.With(f => f.SeriesId = fakeSeries.Id)
|
||||
.With(f => f.Path = currentFilename)
|
||||
.With(f => f.Quality = Quality.WEBDL720p)
|
||||
.With(f => f.Proper = false)
|
||||
.With(f => f.Quality = new QualityModel(Quality.WEBDL720p))
|
||||
.Build();
|
||||
|
||||
Mocker.GetMock<ISeriesRepository>()
|
||||
|
||||
@@ -4,7 +4,9 @@ using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common;
|
||||
using NzbDrone.Core.MediaFiles;
|
||||
using NzbDrone.Core.Qualities;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Core.Tv;
|
||||
|
||||
namespace NzbDrone.Core.Test.MediaFileTests
|
||||
{
|
||||
@@ -17,9 +19,10 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
var files = Builder<EpisodeFile>.CreateListOfSize(10)
|
||||
.All()
|
||||
.With(c => c.Id = 0)
|
||||
.With(c => c.Quality =new QualityModel(Quality.Bluray720p))
|
||||
.Random(4)
|
||||
.With(s => s.SeriesId = 12)
|
||||
.Build();
|
||||
.BuildListOfNew();
|
||||
|
||||
|
||||
Db.InsertMany(files);
|
||||
@@ -70,7 +73,7 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
.With(f => f.Path = path.NormalizePath())
|
||||
.Build();
|
||||
|
||||
Subject.Insert(episodeFile);
|
||||
Subject.Insert(episodeFile);
|
||||
|
||||
var file = Subject.GetFileByPath(path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user