mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
Fixed broken unit tests from parsing logging changes.
This commit is contained in:
parent
bc3e7239c2
commit
b751bbc4ce
2 changed files with 5 additions and 20 deletions
|
@ -25,11 +25,11 @@ namespace NzbDrone.Core.Test
|
|||
public class IndexerTests : CoreTest
|
||||
{
|
||||
|
||||
[TestCase("nzbsorg.xml", 1)]
|
||||
[TestCase("nzbsrus.xml", 8)]
|
||||
[TestCase("newzbin.xml", 1)]
|
||||
[TestCase("nzbmatrix.xml", 2)]
|
||||
public void parse_feed_xml(string fileName, int warns)
|
||||
[TestCase("nzbsorg.xml")]
|
||||
[TestCase("nzbsrus.xml")]
|
||||
[TestCase("newzbin.xml")]
|
||||
[TestCase("nzbmatrix.xml")]
|
||||
public void parse_feed_xml(string fileName)
|
||||
{
|
||||
Mocker.GetMock<HttpProvider>()
|
||||
.Setup(h => h.DownloadStream(It.IsAny<String>(), It.IsAny<NetworkCredential>()))
|
||||
|
@ -53,8 +53,6 @@ namespace NzbDrone.Core.Test
|
|||
parseResults.Should().NotBeEmpty();
|
||||
parseResults.Should().OnlyContain(s => s.Indexer == mockIndexer.Name);
|
||||
parseResults.Should().OnlyContain(s => !String.IsNullOrEmpty(s.OriginalString));
|
||||
|
||||
ExceptionVerification.ExpectedWarns(warns);
|
||||
}
|
||||
|
||||
private void WithConfiguredIndexers()
|
||||
|
@ -177,7 +175,6 @@ namespace NzbDrone.Core.Test
|
|||
|
||||
Assert.IsNotNull(result);
|
||||
Assert.AreEqual(LanguageType.Finnish, result.Language);
|
||||
ExceptionVerification.ExpectedWarns(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue