Skip to content

Commit

Permalink
black format with new version, black-23.1a1
Browse files Browse the repository at this point in the history
  • Loading branch information
igorbrigadir committed Dec 21, 2022
1 parent 8c7d389 commit 1d959b9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions test_twarc.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ def test_follower_ids_with_user_id():


def test_follower_ids_max_pages():

ids = list(T.follower_ids(813286, max_pages=1))
assert 0 < len(ids) <= 5000
ids = list(T.follower_ids(813286, max_pages=2))
Expand All @@ -363,7 +362,6 @@ def test_friend_ids_with_user_id():


def test_friend_ids_max_pages():

ids = list(T.friend_ids(27260086, max_pages=1))
assert 0 < len(ids) <= 5000
ids = list(T.friend_ids(27260086, max_pages=2))
Expand Down Expand Up @@ -799,7 +797,6 @@ def test_csv_retweet():


def test_csv_retweet_hashtag():

toplevel_hashtags = 0
rt_hashtags = 0

Expand Down
10 changes: 0 additions & 10 deletions test_twarc2.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def test_sample():

@pytest.mark.parametrize("sort_order", ["recency", "relevancy"])
def test_search_recent(sort_order):

found_tweets = 0
pages = 0

Expand All @@ -117,7 +116,6 @@ def test_search_recent(sort_order):


def test_counts_recent():

found_counts = 0

for response_page in T.counts_recent("twitter is:verified", granularity="day"):
Expand All @@ -133,7 +131,6 @@ def test_counts_recent():
reason="No Academic Research Product Track access",
)
def test_counts_empty_page():

found_counts = 0

for response_page in T.counts_all(
Expand Down Expand Up @@ -174,7 +171,6 @@ def test_user_ids_lookup():
users_not_found = 0

for response in T.user_lookup(range(1, 1000)):

for profile in response["data"]:
users_found += 1

Expand All @@ -199,12 +195,10 @@ def test_usernames_lookup():


def test_tweet_lookup():

tweets_found = 0
tweets_not_found = 0

for response in T.tweet_lookup(range(1000, 2000)):

for tweet in response["data"]:
tweets_found += 1

Expand Down Expand Up @@ -539,7 +533,6 @@ def test_ensure_user_id():


def test_liking_users():

# This is one of @jack's tweets about the Twitter API
likes = T.liking_users(1460417326130421765)

Expand All @@ -555,7 +548,6 @@ def test_liking_users():


def test_retweeted_by():

# This is one of @jack's tweets about the Twitter API
retweet_users = T.retweeted_by(1460417326130421765)

Expand All @@ -571,7 +563,6 @@ def test_retweeted_by():


def test_liked_tweets():

# What has @jack liked?
liked_tweets = T.liked_tweets(12)

Expand Down Expand Up @@ -641,7 +632,6 @@ def test_user_lookup_non_existent():


def test_twarc_metadata():

# With metadata (default)
event = threading.Event()
for i, response in enumerate(T.sample(event=event)):
Expand Down

0 comments on commit 1d959b9

Please sign in to comment.