1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-22 07:52:34 +00:00

Add test for do not prefer repacks/propers

This commit is contained in:
Bogdan 2024-12-20 20:22:14 +02:00
parent f1d7c56d94
commit 6b4259757c

View file

@ -107,6 +107,25 @@ public void should_return_true_if_proper_and_download_propers_is_do_not_download
.Should().Be(UpgradeableRejectReason.None); .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] [Test]
public void should_return_false_if_release_and_existing_file_are_the_same() public void should_return_false_if_release_and_existing_file_are_the_same()
{ {