From 683c05c99634dc204f679acf5f156f29facdc1a7 Mon Sep 17 00:00:00 2001 From: Alessio Date: Mon, 9 Dec 2024 12:59:46 -0800 Subject: [PATCH] Disable integration test for guy who got banned --- cmd/tests.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cmd/tests.sh b/cmd/tests.sh index 00edb20..25d8846 100755 --- a/cmd/tests.sh +++ b/cmd/tests.sh @@ -239,13 +239,14 @@ tw fetch_user LandsharkRides test $(sqlite3 twitter.db "select is_private from users where handle = 'LandsharkRides'") = "1" -# Fetch a user who deleted and made a new account with the same handle -sqlite3 twitter.db "INSERT INTO users(rowid,id,display_name,handle,bio,following_count,followers_count,location,website,join_date,is_private,is_verified,is_banned,profile_image_url,profile_image_local_path,banner_image_url,banner_image_local_path,pinned_tweet_id,is_content_downloaded,is_followed,is_id_fake,is_deleted) VALUES(134934,1615394007961731072,'Monsieur Chat ✊🏼','9MonsieurChat9','Lives: 4 (-5)',121,694,'','',1673974925000,0,0,0,'https://pbs.twimg.com/profile_images/1818708927842074627/O0i9kUeI.jpg','9MonsieurChat9_profile_O0i9kUeI.jpg','','',1834121200584589600,0,0,0,0)" -test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9'") = "1" -tw fetch_user 9MonsieurChat9 # Should get the updated one -test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9'") = "2" -test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9' and not is_deleted") = "1" -test $(sqlite3 twitter.db "select is_deleted from users where id = 1615394007961731072") = "1" +# # Fetch a user who deleted and made a new account with the same handle +# TODO: this guy got banned +# sqlite3 twitter.db "INSERT INTO users(rowid,id,display_name,handle,bio,following_count,followers_count,location,website,join_date,is_private,is_verified,is_banned,profile_image_url,profile_image_local_path,banner_image_url,banner_image_local_path,pinned_tweet_id,is_content_downloaded,is_followed,is_id_fake,is_deleted) VALUES(134934,1615394007961731072,'Monsieur Chat ✊🏼','9MonsieurChat9','Lives: 4 (-5)',121,694,'','',1673974925000,0,0,0,'https://pbs.twimg.com/profile_images/1818708927842074627/O0i9kUeI.jpg','9MonsieurChat9_profile_O0i9kUeI.jpg','','',1834121200584589600,0,0,0,0)" +# test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9'") = "1" +# tw fetch_user 9MonsieurChat9 # Should get the updated one +# test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9'") = "2" +# test $(sqlite3 twitter.db "select count(*) from users where handle like '9MonsieurChat9' and not is_deleted") = "1" +# test $(sqlite3 twitter.db "select is_deleted from users where id = 1615394007961731072") = "1" # Fetch a tweet from such a new account with the same handle as an old one sqlite3 twitter.db "delete from users where handle like '9MonsieurChat9' and not is_deleted"