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

New: Handle missingFiles status from qBit [common]

This commit is contained in:
Qstick
2020-09-09 21:18:38 -04:00
parent 4311048c08
commit 9a2cee3104
2 changed files with 26 additions and 0 deletions
@@ -258,6 +258,27 @@ namespace NzbDrone.Core.Test.Download.DownloadClientTests.QBittorrentTests
item.RemainingTime.Should().NotHaveValue();
}
[Test]
public void missingFiles_item_should_have_required_properties()
{
var torrent = new QBittorrentTorrent
{
Hash = "HASH",
Name = _title,
Size = 1000,
Progress = 0.7,
Eta = 8640000,
State = "missingFiles",
Label = "",
SavePath = ""
};
GivenTorrents(new List<QBittorrentTorrent> { torrent });
var item = Subject.GetItems().Single();
VerifyWarning(item);
item.RemainingTime.Should().NotHaveValue();
}
[Test]
public void Download_should_return_unique_id()
{