Temporarily remove the follow/unfollow integration tests

This commit is contained in:
Alessio 2024-09-17 18:25:25 -07:00
parent 51eaa2a0c4
commit 8c390444d6

View File

@ -338,16 +338,16 @@ test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")"
tw follow michaelmalice
test "$(sqlite3 twitter.db "select handle from users where is_followed = 1")" = "michaelmalice"
tw follow cernovich
test $(tw list_followed | wc -l) = 2
test "$(tw list_followed | grep -iq cernovich && echo YES)" = "YES"
test "$(tw list_followed | grep -iq michaelmalice && echo YES)" = "YES"
test "$(tw list_followed | grep -iq blahblahgibberish && echo YES)" = ""
# tw follow cernovich
# test $(tw list_followed | wc -l) = 2
# test "$(tw list_followed | grep -iq cernovich && echo YES)" = "YES"
# test "$(tw list_followed | grep -iq michaelmalice && echo YES)" = "YES"
# test "$(tw list_followed | grep -iq blahblahgibberish && echo YES)" = ""
tw unfollow michaelmalice
test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "1"
tw unfollow cernovich
test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "0"
# tw unfollow michaelmalice
# test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "1"
# tw unfollow cernovich
# test "$(sqlite3 twitter.db "select count(*) from users where is_followed = 1")" = "0"
# When not logged in, age-restricted tweet should fail to fetch