summaryrefslogtreecommitdiff
path: root/libtmdb
diff options
context:
space:
mode:
Diffstat (limited to 'libtmdb')
-rw-r--r--libtmdb/testCallMockApi.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/libtmdb/testCallMockApi.cpp b/libtmdb/testCallMockApi.cpp
index cb06791..9386793 100644
--- a/libtmdb/testCallMockApi.cpp
+++ b/libtmdb/testCallMockApi.cpp
@@ -10,11 +10,8 @@ BOOST_AUTO_TEST_CASE( search_tmdb )
{
TMDb::Proxy test(MockBase, ApiKey);
auto resp = test.SearchMulti("breaking bad", 1, Ice::Current());
- BOOST_REQUIRE_EQUAL(3, resp->Results.size());
- BOOST_REQUIRE_EQUAL(3, 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(!resp->Results.empty());
+ BOOST_REQUIRE(resp->TotalResults);
}
BOOST_AUTO_TEST_CASE( get_movie )