Fixed: (Applications) Test fails when selecting sub-categories only for sync

Fixes #588
pull/595/head
Qstick 3 years ago
parent 61cff12206
commit 8ebec7c7e1

@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Lidarr
Capabilities = new IndexerCapabilities()
};
testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Audio);
foreach (var cat in NewznabStandardCategory.AllCats)
{
testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat);
}
try
{

@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Radarr
Capabilities = new IndexerCapabilities()
};
testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Movies);
foreach (var cat in NewznabStandardCategory.AllCats)
{
testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat);
}
try
{

@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Readarr
Capabilities = new IndexerCapabilities()
};
testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.Books);
foreach (var cat in NewznabStandardCategory.AllCats)
{
testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat);
}
try
{

@ -40,7 +40,10 @@ namespace NzbDrone.Core.Applications.Sonarr
Capabilities = new IndexerCapabilities()
};
testIndexer.Capabilities.Categories.AddCategoryMapping(1, NewznabStandardCategory.TV);
foreach (var cat in NewznabStandardCategory.AllCats)
{
testIndexer.Capabilities.Categories.AddCategoryMapping(1, cat);
}
try
{

Loading…
Cancel
Save