mirror of
https://github.com/Radarr/Radarr
synced 2025-02-26 08:02:56 +00:00
Fixed broken test
This commit is contained in:
parent
b3fb807f41
commit
ad0e372c35
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc.Json
|
||||||
public class UpdateFixture : CoreTest<JsonApiProvider>
|
public class UpdateFixture : CoreTest<JsonApiProvider>
|
||||||
{
|
{
|
||||||
private XbmcSettings _settings;
|
private XbmcSettings _settings;
|
||||||
const string _expectedJson = "{\"jsonrpc\":\"2.0\",\"method\":\"VideoLibrary.GetTvShows\",\"params\":{\"properties\":[\"file\",\"imdbnumber\"]},\"id\":10}";
|
const string _expectedJson = "{\"jsonrpc\":\"2.0\",\"method\":\"VideoLibrary.GetTvShows\",\"params\":{\"properties\":[\"file\",\"imdbnumber\"]},\"id\":";
|
||||||
|
|
||||||
private const string _tvshowsResponse = "{\"id\":10,\"jsonrpc\":\"2.0\",\"result\":{\"limits\":" +
|
private const string _tvshowsResponse = "{\"id\":10,\"jsonrpc\":\"2.0\",\"result\":{\"limits\":" +
|
||||||
"{\"end\":5,\"start\":0,\"total\":5},\"tvshows\":[{\"file\"" +
|
"{\"end\":5,\"start\":0,\"total\":5},\"tvshows\":[{\"file\"" +
|
||||||
|
@ -42,7 +42,7 @@ public void Setup()
|
||||||
|
|
||||||
Mocker.GetMock<IHttpProvider>()
|
Mocker.GetMock<IHttpProvider>()
|
||||||
.Setup(s => s.PostCommand(_settings.Address, _settings.Username, _settings.Password,
|
.Setup(s => s.PostCommand(_settings.Address, _settings.Username, _settings.Password,
|
||||||
It.Is<string>(e => e.Replace(" ", "").Replace("\r\n", "").Replace("\t", "") == _expectedJson.Replace(" ", ""))))
|
It.Is<string>(e => e.Replace(" ", "").Replace("\r\n", "").Replace("\t", "").Contains(_expectedJson.Replace(" ", "")))))
|
||||||
.Returns(_tvshowsResponse);
|
.Returns(_tvshowsResponse);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue