[libgdata] picasaweb: Don't check various image URIs exactly in the test suite



commit 943a48eb048e3aae0cff9ecc24249757fef189e6
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Apr 15 18:08:33 2011 +0100

    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.

 gdata/tests/picasaweb.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c
index 806e4be..6871fce 100644
--- a/gdata/tests/picasaweb.c
+++ b/gdata/tests/picasaweb.c
@@ -750,8 +750,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), ==, "https://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), ==,
-	                 "https://lh3.googleusercontent.com/_1kdcGyvOb8c/AAAAAAAAAAA/AAAAAAAADJo/DBiSoq_oSTo/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);
@@ -915,8 +914,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), ==,
-	                 "https://lh3.googleusercontent.com/_1kdcGyvOb8c/AAAAAAAAAAA/AAAAAAAADJo/DBiSoq_oSTo/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);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]