core: rearrange test classes (#10023)

This commit is contained in:
Diego Heras
2020-10-31 01:12:35 +01:00
committed by GitHub
parent 3d27e18b87
commit 15ea7ed9f9
16 changed files with 337 additions and 169 deletions

View File

@@ -0,0 +1,22 @@
using Jackett.Common.Models;
namespace Jackett.Test.TestHelpers
{
public static class TestCategories
{
public static void AddTestCategories(TorznabCapabilitiesCategories tcc)
{
// these categories are chosen to test all kind of category types:
// - with integer and string id
// - with and without description
// - parent and child categories
// - custom categories are not added automatically but they are created from other categories automatically
tcc.AddCategoryMapping("1", TorznabCatType.Movies);
tcc.AddCategoryMapping("mov_sd", TorznabCatType.MoviesSD);
tcc.AddCategoryMapping("33", TorznabCatType.BooksComics);
tcc.AddCategoryMapping("44", TorznabCatType.ConsoleXBox, "Console/Xbox_c");
tcc.AddCategoryMapping("con_wii", TorznabCatType.ConsoleWii, "Console/Wii_c");
tcc.AddCategoryMapping("45", TorznabCatType.ConsoleXBox, "Console/Xbox_c2");
}
}
}