mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Updated NzbGet tests.
This commit is contained in:
@@ -231,7 +231,7 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void should_report_deletestatus_dupe_as_warning()
|
public void should_report_deletestatus_dupe_as_failed()
|
||||||
{
|
{
|
||||||
_completed.DeleteStatus = "DUPE";
|
_completed.DeleteStatus = "DUPE";
|
||||||
|
|
||||||
@@ -240,7 +240,20 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.NzbgetTests
|
|||||||
|
|
||||||
var result = Subject.GetItems().Single();
|
var result = Subject.GetItems().Single();
|
||||||
|
|
||||||
result.Status.Should().Be(DownloadItemStatus.Warning);
|
result.Status.Should().Be(DownloadItemStatus.Failed);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void should_report_deletestatus_copy_as_failed()
|
||||||
|
{
|
||||||
|
_completed.DeleteStatus = "COPY";
|
||||||
|
|
||||||
|
GivenQueue(null);
|
||||||
|
GivenHistory(_completed);
|
||||||
|
|
||||||
|
var result = Subject.GetItems().Single();
|
||||||
|
|
||||||
|
result.Status.Should().Be(DownloadItemStatus.Failed);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
Reference in New Issue
Block a user