More tests, coverage, and excluding lines from being covered
There are some lines that will never be hit in tests, excluding those from being covered!
This commit is contained in:
parent
00c0bd91a6
commit
acdf73a04e
6 changed files with 45 additions and 10 deletions
|
|
@ -19,6 +19,16 @@ class TwythonStreamTestCase(unittest.TestCase):
|
|||
self.api = MyStreamer(app_key, app_secret,
|
||||
oauth_token, oauth_token_secret)
|
||||
|
||||
client_args = {
|
||||
'headers': {
|
||||
'User-Agent': '__twython__ Stream Test'
|
||||
}
|
||||
}
|
||||
# Initialize with header for coverage checking for User-Agent
|
||||
self.api_with_header = MyStreamer(app_key, app_secret,
|
||||
oauth_token, oauth_token_secret,
|
||||
client_args=client_args)
|
||||
|
||||
def test_stream_status_filter(self):
|
||||
self.api.statuses.filter(track='twitter')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue