1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed SceneMappingProxy tests

This commit is contained in:
Mark McDowall 2013-09-05 23:28:52 -07:00
parent e07b588fd8
commit 67555db685
2 changed files with 21 additions and 17 deletions

View File

@ -13,7 +13,7 @@ namespace NzbDrone.Core.Test.DataAugmentationFixture.Scene
public class SceneMappingProxyFixture : CoreTest<SceneMappingProxy>
{
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 @@ public void fetch_should_return_list_of_mappings()
mappings.Should().NotContain(c => c.TvdbId == 0);
}
[Test]
public void should_throw_on_server_error()
{

View File

@ -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
}
]