summaryrefslogtreecommitdiff
path: root/libtmdb
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-07-03 00:34:42 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-07-03 00:34:42 +0100
commit887b42ee01d8a3e0289dbcc1423cbcae56578910 (patch)
treeca3dcaa6ccf83543128ee900e949e2dda6be4a04 /libtmdb
parentUse a std::stream over a ustring for buffering json data, better with new lib... (diff)
downloadp2pvr-887b42ee01d8a3e0289dbcc1423cbcae56578910.tar.bz2
p2pvr-887b42ee01d8a3e0289dbcc1423cbcae56578910.tar.xz
p2pvr-887b42ee01d8a3e0289dbcc1423cbcae56578910.zip
Update expectations of tmdb mock api
Diffstat (limited to 'libtmdb')
-rw-r--r--libtmdb/testCallMockApi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libtmdb/testCallMockApi.cpp b/libtmdb/testCallMockApi.cpp
index 6321773..79efbe2 100644
--- a/libtmdb/testCallMockApi.cpp
+++ b/libtmdb/testCallMockApi.cpp
@@ -10,11 +10,11 @@ BOOST_AUTO_TEST_CASE( search_tmdb )
{
TMDb::Proxy test(MockBase, ApiKey);
auto resp = test.SearchMulti("breaking bad", 0, Ice::Current());
- BOOST_REQUIRE_EQUAL(3, resp->Results.size());
- BOOST_REQUIRE_EQUAL(3, resp->TotalResults);
+ BOOST_REQUIRE_EQUAL(20, resp->Results.size());
+ BOOST_REQUIRE_EQUAL(134, resp->TotalResults);
BOOST_REQUIRE_EQUAL(1396, resp->Results[0]->Id);
- BOOST_REQUIRE_EQUAL(239459, resp->Results[1]->Id);
- BOOST_REQUIRE_EQUAL(19050, resp->Results[2]->Id);
+ BOOST_REQUIRE_EQUAL(34541, resp->Results[1]->Id);
+ BOOST_REQUIRE_EQUAL(332501, resp->Results[19]->Id);
}
BOOST_AUTO_TEST_CASE( get_movie )