Update tests to pass client_args rather than headers
This commit is contained in:
parent
25cfd0909c
commit
1dfa11dd27
1 changed files with 8 additions and 1 deletions
|
|
@ -50,9 +50,16 @@ class TwythonAuthTestCase(unittest.TestCase):
|
|||
|
||||
class TwythonAPITestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
||||
client_args = {
|
||||
'headers': {
|
||||
'User-Agent': '__twython__ Test'
|
||||
}
|
||||
}
|
||||
|
||||
self.api = Twython(app_key, app_secret,
|
||||
oauth_token, oauth_token_secret,
|
||||
headers={'User-Agent': '__twython__ Test'})
|
||||
client_args=client_args)
|
||||
|
||||
def test_construct_api_url(self):
|
||||
"""Test constructing a Twitter API url works as we expect"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue