From 67555db685537e6cbf7a87a7a09637b40f70f681 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 5 Sep 2013 23:28:52 -0700 Subject: [PATCH] Fixed SceneMappingProxy tests --- .../Scene/SceneMappingProxyFixture.cs | 3 +- NzbDrone.Core.Test/Files/SceneMappings.json | 35 +++++++++++-------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/NzbDrone.Core.Test/DataAugmentationFixture/Scene/SceneMappingProxyFixture.cs b/NzbDrone.Core.Test/DataAugmentationFixture/Scene/SceneMappingProxyFixture.cs index 98ad8b504..036880dd2 100644 --- a/NzbDrone.Core.Test/DataAugmentationFixture/Scene/SceneMappingProxyFixture.cs +++ b/NzbDrone.Core.Test/DataAugmentationFixture/Scene/SceneMappingProxyFixture.cs @@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.DataAugmentationFixture.Scene public class SceneMappingProxyFixture : CoreTest { - private const string SCENE_MAPPING_URL = "http://services.nzbdrone.com/SceneMapping/Active"; + private const string SCENE_MAPPING_URL = "http://services.nzbdrone.com/v1/SceneMapping"; [Test] public void fetch_should_return_list_of_mappings() @@ -31,7 +31,6 @@ namespace NzbDrone.Core.Test.DataAugmentationFixture.Scene mappings.Should().NotContain(c => c.TvdbId == 0); } - [Test] public void should_throw_on_server_error() { diff --git a/NzbDrone.Core.Test/Files/SceneMappings.json b/NzbDrone.Core.Test/Files/SceneMappings.json index a914ecdc9..71e1f5937 100644 --- a/NzbDrone.Core.Test/Files/SceneMappings.json +++ b/NzbDrone.Core.Test/Files/SceneMappings.json @@ -1,27 +1,32 @@ [ { - "CleanTitle": "csinewyork", - "Id": "73696", - "Title": "CSI" + "title": "Adventure Time", + "searchTitle": "Adventure Time", + "season": -1, + "tvdbId": 152831 }, { - "CleanTitle": "csiny", - "Id": "73696", - "Title": "CSI" + "title": "Americas Funniest Home Videos", + "searchTitle": "Americas Funniest Home Videos", + "season": -1, + "tvdbId": 76235 }, { - "CleanTitle": "csi", - "Id": "72546", - "Title": "CSI" + "title": "Antiques Roadshow UK", + "searchTitle": "Antiques Roadshow UK", + "season": -1, + "tvdbId": 83774 }, { - "CleanTitle": "csilasvegas", - "Id": "72546", - "Title": "CSI" + "title": "Aqua Something You Know Whatever", + "searchTitle": "Aqua Something You Know Whatever", + "season": 9, + "tvdbId": 77120 }, { - "CleanTitle": "archer", - "Id": "110381", - "Title": "Archer" + "title": "Aqua Teen Hunger Force", + "searchTitle": "Aqua Teen Hunger Force", + "season": -1, + "tvdbId": 77120 } ] \ No newline at end of file