1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Fixed: Don't reject revision upgrades if profile doesn't allow upgrades

This commit is contained in:
Mark McDowall
2024-09-27 16:42:39 -07:00
committed by Mark McDowall
parent 2f0ca42341
commit 4f0e1c54c1
2 changed files with 20 additions and 0 deletions
@@ -206,5 +206,19 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
new List<CustomFormat>())
.Should().BeTrue();
}
[Test]
public void should_returntrue_when_quality_is_revision_upgrade_for_same_quality()
{
_qualityProfile.UpgradeAllowed = false;
Subject.IsUpgradeAllowed(
_qualityProfile,
new QualityModel(Quality.DVD, new Revision(1)),
new List<CustomFormat> { _customFormatOne },
new QualityModel(Quality.DVD, new Revision(2)),
new List<CustomFormat> { _customFormatOne })
.Should().BeTrue();
}
}
}