summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2011-04-15 18:08:33 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2011-04-15 18:08:33 +0100
commitf4fc662c472f21da34a16e7a2b3b6d6ebfda9c17 (patch)
tree619ed86d9067d143e3b04b8d165f742534058a12
parentd422c55d7f5c742a5d9bc9cebf34cf7e0512e3d3 (diff)
downloadlibgdata-f4fc662c472f21da34a16e7a2b3b6d6ebfda9c17.tar.gz
picasaweb: Don't check various image URIs exactly in the test suite
They regularly change (every month or two), and it's a pain to have to keep updating the test suite.
-rw-r--r--gdata/tests/picasaweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 21949c49..56059a2f 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -748,7 +748,7 @@ test_album_feed (gconstpointer service)
/* TODO find out why subtitle == null when returned: no subtitle for feed? printf("feed subtitle: %s\n", gdata_feed_get_subtitle(feed)); */
g_assert_cmpstr (gdata_feed_get_id (album_feed), ==, "http://picasaweb.google.com/data/feed/user/libgdata.picasaweb");
g_assert_cmpstr (gdata_feed_get_etag (album_feed), !=, NULL); /* this varies as albums change, like when a new image is uploaded in our test! */
- g_assert_cmpstr (gdata_feed_get_icon (album_feed), ==, "http://lh3.ggpht.com/_1kdcGyvOb8c/AAAAAAAAAAA/AAAAAAAAAAA/jNhBfdaNdD4/s64-c/libgdata.picasaweb.jpg");
+ g_assert_cmpstr (gdata_feed_get_icon (album_feed), !=, NULL); /* tested weakly because it changes fairly regularly */
g_assert_cmpuint (gdata_feed_get_items_per_page (album_feed), ==, 1000);
g_assert_cmpuint (gdata_feed_get_start_index (album_feed), ==, 1);
g_assert_cmpuint (gdata_feed_get_total_results (album_feed), ==, NUM_ALBUMS);
@@ -912,7 +912,7 @@ test_query_user (gconstpointer service)
g_assert_cmpint (gdata_picasaweb_user_get_quota_limit (user), ==, 1073741824); /* 1GiB: it'll be a beautiful day when this assert gets tripped */
g_assert_cmpint (gdata_picasaweb_user_get_quota_current (user), >, 0);
g_assert_cmpint (gdata_picasaweb_user_get_max_photos_per_album (user), >, 0); /* now it's 1000, testing this weakly to avoid having to regularly update it */
- g_assert_cmpstr (gdata_picasaweb_user_get_thumbnail_uri (user), ==, "http://lh3.ggpht.com/_1kdcGyvOb8c/AAAAAAAAAAA/AAAAAAAAAAA/jNhBfdaNdD4/s64-c/libgdata.picasaweb.jpg");
+ g_assert_cmpstr (gdata_picasaweb_user_get_thumbnail_uri (user), !=, NULL); /* tested weakly to avoid having to update it regularly */
g_object_unref (user);
}