Commit graph

30 commits

Author SHA1 Message Date
Clayton A Davis
6166e86807 Add test for cursor creation 2017-09-11 13:52:43 -04:00
Phil Gyford
6890802b2a Add test for missing symbols in entities
If a tweet has no `symbols` in its `entities` then `html_for_tweet()`
was failing.

I'm not sure how common this is but, for example, tweets in a downloaded
archive do not have `symbols` for some reason.

The previous change (b366ab5) fixed this, but I'm adding a test
for this case.
2017-08-22 13:55:22 +01:00
Phil Gyford
b366ab55c3 Improve replacing of entities with links in html_for_tweet()
I've re-written the parts of `html_for_tweet()` so that it handles
all the replacements of URLs, mentions, symbols and hashtags better.

Mainly to fix #447 but it should be a little more robust generally.

Shamelessly cribbed from https://stackoverflow.com/a/25514650/250962

Passes all tests, but I haven't checked it beyond that.

Fixes #447
2017-08-22 13:49:40 +01:00
ping
c57c4bfc34 Update html_for_tweet to support extended tweets 2016-09-20 17:18:21 +08:00
Phil Gyford
a1640f4a17 Link $IBM-style symbols in tweets in html_for_tweet()
Fixes #412
2016-04-22 14:22:32 +01:00
Mike Helmick
02d1a946c1 Unpin requests 2014-10-30 16:49:03 -04:00
Joe Cabrera
a0fec2f004 pep8 finished 2014-07-26 11:48:36 -04:00
Cory Benfield
f514816c6f Fixup python3 test failure. 2014-02-23 15:12:44 +00:00
Cory Benfield
673336ff8f Failing test for Accept-Encoding header 2014-02-23 15:07:01 +00:00
cash
fa2122127c Fixes #302 simplifies json decoding and handling of errors. Adds tests. 2014-01-25 16:56:48 -05:00
Cash Costello
c83304edf2 requests returns content as bytes so use bytes for test strings. Also changed api verison in test 1.1 to not confuse people 2014-01-14 11:14:14 -05:00
cash
9f7d38181e python 3.3 workaround for dropbox/responses issue 2014-01-11 19:45:47 -05:00
cash
30ff4319e2 updated unit tests and travis config for python 2.6 and 3 2014-01-11 19:45:46 -05:00
cash
c449e3f8e1 skipping tests that were failing because of external dependency on Twitter 2014-01-11 15:45:45 -05:00
cash
fc55791cbf updated remaining tests in test_core.py and removed cursor test (which will be replaced) 2014-01-11 15:37:47 -05:00
cash
5304803f09 added docstrings for new tests and finished testing input arguments of request() 2014-01-11 11:13:55 -05:00
cash
f075586fcd moved integration tests to new file 2014-01-11 10:06:30 -05:00
cash
9cbd3d6fbc added some basic tests of the core request() method using dropbox/responses 2014-01-09 22:59:23 -05:00
Mike Helmick
06f5425724 Fixes #244 2013-07-20 17:46:13 -04:00
Mike Helmick
dd3727c6f5 Fixes #243 2013-07-20 17:22:07 -04:00
Mike Helmick
0fef3369ae Attempting to fix tests again -___- 2013-07-18 21:16:08 -04:00
Mike Helmick
a04a7c155c Fixing up some more tests
Even though this should be done in here really :P
2013-07-18 21:04:39 -04:00
Mike Helmick
a1ee2a93ad Attempting to fix some tests that started breaking... 2013-07-18 20:57:31 -04:00
Mike Helmick
2dc15b7030 Fix generator test, remove search_gen from coverage 2013-07-18 20:43:02 -04:00
Mike Helmick
acdf73a04e 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!
2013-06-27 22:37:02 -04:00
Mike Helmick
3c637ddc7d Tests and documentation 2013-06-27 19:20:43 -04:00
Mike Helmick
7cab9d5dd1 Attempting to exclude lines that we can't necessarily hit in tests, added a test, fixed function name
update_profile_background_image has been in endpoints.py twice for a
bit, my bad.

Using update_profile_banner_image for the function name to update
profile banner image (that's what it was called previously)
2013-06-12 10:54:28 -04:00
Mike Helmick
478c139af2 Coverage, tests, secure ACCESS_TOKEN, update HISTORY 2013-06-11 17:12:34 -04:00
Mike Helmick
2f5f496ead More test coverage 2013-06-11 15:00:39 -04:00
Mike Helmick
6ce39f9921 Moving tests to their own folder 2013-06-11 14:41:46 -04:00
Renamed from test_twython.py (Browse further)