diff --git a/cmd/tests.sh b/cmd/tests.sh index c77095a..4626e78 100755 --- a/cmd/tests.sh +++ b/cmd/tests.sh @@ -303,7 +303,8 @@ test $(sqlite3 twitter.db "select is_stub from tweets where id = 145452142414465 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1 test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454526270809726977") = 0 # Check that it downloaded the fetchable user's profile image -test $(find profile_images/WhaleTherapist_profile* | wc -l) -ne 0 +handle="$(sqlite3 twitter.db "select handle from users where id like 1365863538393309184")" +test "$(find profile_images/${handle}_profile* | wc -l)" -ne 0 # Test an expanding ("Show more") tweet