1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-25 09:21:57 +00:00

Fixed broken tests... wtf was I doing?

This commit is contained in:
Mark McDowall 2012-08-30 08:33:09 -07:00
parent 0b8ca7c3b0
commit d3ccd70470
2 changed files with 8 additions and 7 deletions

View file

@ -18,14 +18,18 @@ namespace NzbDrone.Core.Test.ProviderTests.DownloadClientTests
public class PneumaticProviderFixture : CoreTest
{
private const string nzbUrl = "http://www.nzbs.com/url";
private const string title = "some_nzb_title";
private const string title = "30.Rock.S01E05.hdtv.xvid-LoL";
private const string pneumaticFolder = @"d:\nzb\pneumatic\";
private const string nzbPath = @"d:\nzb\blackhole\some_nzb_title.nzb";
private const string sabDrop = @"d:\unsorted tv\";
private string nzbPath;
[SetUp]
public void Setup()
{
Mocker.GetMock<ConfigProvider>().SetupGet(c => c.BlackholeDirectory).Returns(pneumaticFolder);
nzbPath = pneumaticFolder + title + ".nzb";
Mocker.GetMock<ConfigProvider>().SetupGet(c => c.PneumaticDirectory).Returns(pneumaticFolder);
Mocker.GetMock<ConfigProvider>().SetupGet(c => c.SabDropDirectory).Returns(sabDrop);
}
private void WithExistingFile()
@ -70,9 +74,6 @@ public void should_return_false_on_failed_download()
public void should_skip_if_full_season_download()
{
Mocker.Resolve<PneumaticProvider>().DownloadNzb(nzbUrl, "30 Rock - Season 1").Should().BeFalse();
ExceptionVerification.ExpectedErrors(1);
}
}
}

View file

@ -40,7 +40,7 @@ public virtual bool DownloadNzb(string url, string title)
//Todo: Allow full season releases
if (Parser.ParseTitle(title).FullSeason)
{
logger.Warn("Skipping Full Season Release: {0}", title);
logger.Info("Skipping Full Season Release: {0}", title);
return false;
}