New: Readarr 0.1

This commit is contained in:
ta264
2020-05-06 21:14:11 +01:00
parent 476f2d6047
commit 08496c82af
911 changed files with 14837 additions and 24442 deletions
@@ -25,7 +25,7 @@ namespace NzbDrone.Core.Test.UpdateTests
}
[Test]
[Platform(Exclude = "NetCore")]
[Ignore("Ignore until we actually release something on nightly")]
public void finds_update_when_version_lower()
{
UseRealHttp();
@@ -41,6 +41,7 @@ namespace NzbDrone.Core.Test.UpdateTests
}
[Test]
[Ignore("Until merge readarr 0.1 pr")]
public void should_get_recent_updates()
{
const string branch = "nightly";
@@ -124,7 +124,7 @@ namespace NzbDrone.Core.Test.UpdateTests
Subject.Execute(new ApplicationUpdateCommand());
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive));
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive, null));
}
[Test]
@@ -238,6 +238,7 @@ namespace NzbDrone.Core.Test.UpdateTests
[Test]
[IntegrationTest]
[Ignore("Until release published")]
public void Should_download_and_extract_to_temp_folder()
{
UseRealHttp();
@@ -289,7 +290,7 @@ namespace NzbDrone.Core.Test.UpdateTests
Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand()));
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive), Times.Never());
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive, null), Times.Never());
ExceptionVerification.ExpectedErrors(1);
}
@@ -304,7 +305,7 @@ namespace NzbDrone.Core.Test.UpdateTests
Assert.Throws<CommandFailedException>(() => Subject.Execute(new ApplicationUpdateCommand()));
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive), Times.Never());
Mocker.GetMock<IHttpClient>().Verify(c => c.DownloadFile(_updatePackage.Url, updateArchive, null), Times.Never());
ExceptionVerification.ExpectedErrors(1);
}