mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-27 16:45:47 +01:00
updated history table
This commit is contained in:
@@ -34,28 +34,6 @@ namespace NzbDrone.Core.Test.MediaFileTests
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void get_files_by_season()
|
||||
{
|
||||
var files = Builder<EpisodeFile>.CreateListOfSize(20)
|
||||
.All()
|
||||
.With(c => c.Id = 0)
|
||||
.With(s => s.SeasonNumber = 10)
|
||||
.TheFirst(10)
|
||||
.With(c => c.SeriesId = 1)
|
||||
.TheNext(10)
|
||||
.With(c => c.SeriesId = 2)
|
||||
.Random(10)
|
||||
.With(s => s.SeasonNumber = 20)
|
||||
.Build();
|
||||
|
||||
|
||||
Db.InsertMany(files);
|
||||
|
||||
|
||||
Subject.GetFilesBySeason(1, 20).Should().OnlyContain(c => c.SeriesId == 1 && c.SeasonNumber == 20);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void GetFileByPath_should_return_null_if_file_does_not_exist_in_database()
|
||||
|
||||
Reference in New Issue
Block a user