fix issue 374 where tweet_volume data was not being populated on Tren… · iCodeIN/python-twitter@66766c2 · GitHub
Skip to content

Commit 66766c2

Browse files
committed
fix issue 374 where tweet_volume data was not being populated on Trend instantiation
1 parent 99e0cff commit 66766c2

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

doc/changelog.rst

Lines changed: 8 additions & 0 deletions

testdata/models/models_trend.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"#ChangeAConsonantSpoilAMovie","url":"http:\\/\\/twitter.com\\/search?q=%23ChangeAConsonantSpoilAMovie","promoted_content":null,"query":"%23ChangeAConsonantSpoilAMovie","tweet_volume":null}
1+
{"name":"#ChangeAConsonantSpoilAMovie","url":"http:\\/\\/twitter.com\\/search?q=%23ChangeAConsonantSpoilAMovie","promoted_content":null,"query":"%23ChangeAConsonantSpoilAMovie","tweet_volume":104403}

tests/test_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def test_trend(self):
116116
self.fail(e)
117117
self.assertTrue(trend.AsJsonString())
118118
self.assertTrue(trend.AsDict())
119+
self.assertEqual(trend.tweet_volume, 104403)
119120

120121
def test_url(self):
121122
url = twitter.Url.NewFromJsonDict(self.URL_SAMPLE_JSON)

twitter/models.py

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)