Add test for do not prefer repacks/propers

pull/10799/head
Bogdan 4 months ago
parent f1d7c56d94
commit 6b4259757c

@ -107,6 +107,25 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
.Should().Be(UpgradeableRejectReason.None);
}
[Test]
public void should_return_false_if_proper_and_autoDownloadPropers_is_do_not_prefer()
{
GivenAutoDownloadPropers(ProperDownloadTypes.DoNotPrefer);
var profile = new QualityProfile
{
Items = Qualities.QualityFixture.GetDefaultQualities(),
};
Subject.IsUpgradable(
profile,
new QualityModel(Quality.DVD, new Revision(version: 1)),
new List<CustomFormat>(),
new QualityModel(Quality.DVD, new Revision(version: 2)),
new List<CustomFormat>())
.Should().Be(UpgradeableRejectReason.UpgradesNotAllowed);
}
[Test]
public void should_return_false_if_release_and_existing_file_are_the_same()
{

Loading…
Cancel
Save