mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
New: Only scan files that are new or updated (#760)
* New: Only scan files that are new or updated Pass through filter correctly Add more tests Add tests for migration 30 * Fix windows disk provider * Don't publish deleted event for unmapped file * Fix test on windows
This commit is contained in:
@@ -117,28 +117,6 @@ namespace NzbDrone.Core.Test.MediaFiles
|
||||
files.Should().HaveCount(4);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void get_files_by_relative_path()
|
||||
{
|
||||
VerifyData();
|
||||
var files = Subject.GetFilesWithRelativePath(artist.Id, "RelativePath2");
|
||||
VerifyEagerLoaded(files);
|
||||
|
||||
files.Should().OnlyContain(c => c.AlbumId == album.Id);
|
||||
files.Should().OnlyContain(c => c.RelativePath == "RelativePath2");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void get_files_by_relative_path_should_only_contain_monitored_releases()
|
||||
{
|
||||
VerifyData();
|
||||
|
||||
// file 5 is linked to an unmonitored release
|
||||
var files = Subject.GetFilesWithRelativePath(artist.Id, "RelativePath5");
|
||||
|
||||
files.Should().BeEmpty();
|
||||
}
|
||||
|
||||
private void VerifyData()
|
||||
{
|
||||
Db.All<Artist>().Should().HaveCount(1);
|
||||
|
||||
Reference in New Issue
Block a user