Add integration test for another type of deleted tweet

This commit is contained in:
Alessio 2024-06-10 17:55:19 -07:00
parent 81c39e0c4c
commit cf6443518a

View File

@ -307,6 +307,10 @@ tw fetch_tweet https://twitter.com/CovfefeAnon/status/1365278017233313795
test $(sqlite3 twitter.db "select is_id_fake from users where handle = '_selfoptimizer'") = 1
test $(sqlite3 twitter.db "select count(*) from tweets where user_id = (select id from users where handle = '_selfoptimizer')") = 1
# Test a tweet which is itself from a deleted account
tw fetch_tweet https://twitter.com/lndian_Bronson/status/1569875562784608256
test $(sqlite3 twitter.db "select is_stub, user_id = 0x4000000000000000 from tweets where id = 1569875562784608256") = "1|1"
# Test fetching a banned user
tw fetch_user nancytracker