Skip to content

Commit

Permalink
tweepy 3.7 support for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzigaran committed Apr 19, 2020
1 parent abadf39 commit 36c73c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -29,7 +29,7 @@
],

install_requires=[
"tweepy >= 3.0"
"tweepy >= 3.7"
],
test_suite="tests",
tests_require=["mock == 1.0.1"],
Expand Down
6 changes: 3 additions & 3 deletions tests/test_stream.py
Expand Up @@ -72,7 +72,7 @@ def test_start_unfiltered_no_terms(self):
retry_count=self.retry_count)

# It should be using the sample endpoint
self.tweepy_stream_instance.sample.assert_called_once_with(async=True, languages=None)
self.tweepy_stream_instance.sample.assert_called_once_with(is_async=True, languages=None)

def test_start_with_languages(self):

Expand All @@ -89,7 +89,7 @@ def test_start_with_languages(self):
self.stream.start_stream()

# It should be using the sample endpoint with languages
self.tweepy_stream_instance.sample.assert_called_once_with(async=True, languages=languages)
self.tweepy_stream_instance.sample.assert_called_once_with(is_async=True, languages=languages)


def test_start_stream_with_terms(self):
Expand All @@ -107,7 +107,7 @@ def test_start_stream_with_terms(self):
timeout=90,
retry_count=self.retry_count)
# Should start the filter with the terms
self.tweepy_stream_instance.filter.assert_called_once_with(track=self.term_list, async=True, languages=None)
self.tweepy_stream_instance.filter.assert_called_once_with(track=self.term_list, is_async=True, languages=None)


def test_stop_stream_not_started(self):
Expand Down

0 comments on commit 36c73c0

Please sign in to comment.