mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
core: rearrange test classes (#10023)
This commit is contained in:
22
src/Jackett.Test/TestHelpers/TestCategories.cs
Normal file
22
src/Jackett.Test/TestHelpers/TestCategories.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user