From ddb16c9e641127b4c4c19f562b7eebe1dbd7e50e Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 12 Dec 2021 16:14:11 -0800 Subject: [PATCH] Remove integration test for tombstones because the guy un-privated for some reason --- cmd/tests.sh | 9 ++++----- scraper/api_types.go | 4 +++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cmd/tests.sh b/cmd/tests.sh index 310ccbf..2ecb84a 100755 --- a/cmd/tests.sh +++ b/cmd/tests.sh @@ -175,11 +175,10 @@ test $(find link_preview_images | wc -l) = $initial_link_preview_images_count # # Test a tweet thread with tombstones -tw fetch_tweet https://twitter.com/CovfefeAnon/status/1454526270809726977 -test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454515503242829830") = 1 -test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454521424144654344") = 0 -test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1 - +# tw fetch_tweet https://twitter.com/CovfefeAnon/status/1454526270809726977 # TODO: This guy un-privated for some reason +# test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454515503242829830") = 1 +# test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454521424144654344") = 0 +# test $(sqlite3 twitter.db "select is_stub from tweets where id = 1454522147750260742") = 1 # Test search tw search "from:michaelmalice constitution" diff --git a/scraper/api_types.go b/scraper/api_types.go index adaf77b..87250cc 100644 --- a/scraper/api_types.go +++ b/scraper/api_types.go @@ -114,7 +114,9 @@ type APICard struct { DurationMinutes struct { StringValue string `json:"string_value"` } `json:"duration_minutes"` - + LastUpdatedAt struct { + StringValue string `json:"string_value"` + } `json:"last_updated_datetime_utc"` } `json:"binding_values"` }