John Helmert
8df2df93f6
Simplify score and comment count data
...
This commit changes the functionality of the Content class (and its
subclasses) by removing the text from the comments and score fields of
Reddit data dictionaries created by Content.strip*. data['comments'] is
now an integer, but data['score'] remains a string to preserve using '-'
when the score is hidden.
It is now the responsibility of wherever this data is used to provide
the extra text that these variables used to include, and modifications
have been made to the Submission and Subreddit classes to preserve the
previous way the data was displayed.
Tests modified to expect these changes.
2019-07-29 19:10:26 -05:00
John Helmert
5436dc9fce
Add %u to SubredditPage._create_format test
2019-07-25 22:03:41 -05:00
John Helmert
88a75492a4
Repair failing test and fix %U bug
...
Fix SubredditPage._url_str parsing the wrong URL for 'external' URL
types. Make urlparse import agnostic between python2 and 3.
2019-07-25 21:23:17 -05:00
John Helmert
878a510185
Implement %u format specifier
...
New test function for the new SubredditPage._url_str() function added to
test_subreddit.py. Being able to see the information this specifier adds
makes it trivial to tell if a post is a Reddit crosspost from a
SubredditPage (more trivial than manually parsing a full URL from %U,
anyway).
2019-07-25 18:21:04 -05:00
John Helmert
0255c217eb
Repair and test logic to avoid printing None strings
2019-07-21 15:47:18 -05:00
John Helmert
add8866f73
Add test for SubredditPage._draw_item_format
2019-07-21 14:38:57 -05:00
John Helmert
3716a4d69e
Increase test coverage of subreddit_page.py
...
Most notably, test functions for _submission_attr, _url_attr, _gold_str,
and _create_format have been added. The constructor test has been
modified into two functions that test the default view and nondefault
views.
2019-07-18 18:01:17 -05:00
John Helmert
7e9455b4ca
Rename rtv to tuir
2019-06-09 19:31:35 -05:00
Michael Lazar
7a71023a40
Large commit to add support for browsing the inbox
2019-02-27 02:04:45 -05:00
Michael Lazar
81e90fccfb
Making the user page titles a little fancier
2018-10-02 00:51:10 -04:00
woorst
e6157c5e80
add test for user pages
2018-09-15 18:06:31 -04:00
Michael Lazar
b8fb0cf418
Fixing tests and adding cassettes
2018-08-04 01:42:43 -04:00
Edridge D'Souza
ccfff97ee6
Fixed the menu bar in the tests and commented out broken tests
...
Commented out any tests for the gilded method that would require an existing cassette using the gilded sort. Once we have a cassette for that, I believe we can uncomment these lines and (hopefully) have them work.
2018-07-16 18:08:35 -04:00
Edridge D'Souza
93bf150780
Trying again to fix tests
2018-07-16 17:29:30 -04:00
Edridge D'Souza
ad97b8ff9a
Attempt to fix the tests
...
An attempt to fix the broken tests
2018-07-16 16:52:08 -04:00
Michael Lazar
9614dc90fe
Added a new test for hiding a submission
2018-06-03 00:21:29 -04:00
Michael Lazar
d20ed5ee33
Fixing test
2018-01-21 19:52:58 -05:00
Michael Lazar
47e5414be0
Fixing error handling for the inbox command
2018-01-21 19:38:35 -05:00
Michael Lazar
29ea05f5bb
Adding support for emacs terminals
2017-11-04 15:20:58 -04:00
Michael Lazar
c1f3eb447a
Updating tests
2017-09-14 00:27:18 -04:00
Michael Lazar
031b58b3b4
Refactoring and adding tests
2017-09-13 23:35:40 -04:00
Michael Lazar
982861560a
Cherry picking backwards-compatible changes from the themes branch
2017-09-08 01:10:32 -04:00
Michael Lazar
7fbc02b4a0
Adding tests
2017-08-31 10:51:59 -04:00
Michael Lazar
cc5d8a941c
Adding the search term to the title bar, removing with_search argument
2017-07-22 22:04:20 -04:00
Michael Lazar
57064a7b36
Added a [Comment] tag to the subreddit view and added cassettes
2017-06-08 00:01:58 -04:00
Michael Lazar
6b1eab1a97
Bundling praw v3 with rtv
2017-03-28 21:33:10 -07:00
Michael Lazar
d0345d21f4
Added ability to open submissions from the subreddit prompt.
2017-01-17 22:12:27 -08:00
Michael Lazar
e625beb638
Changed order-by shortcut to trigger on a single keystroke. #330
2016-12-27 21:34:08 -08:00
Michael Lazar
496fb849e1
Adding tests.
2016-10-11 22:53:26 -07:00
Michael Lazar
d37e263181
Fix for subreddit title.
2016-10-01 17:47:34 -07:00
Michael Lazar
d271ccf63e
Fixed test.
2016-08-16 20:22:43 -07:00
Michael Lazar
416ab3743d
added _page suffix to page files.
2016-08-16 20:21:35 -07:00
Michael Lazar
17425008b3
Adding general test coverage.
2016-08-10 01:32:02 -07:00
Michael Lazar
a97b10e162
More cassettes.
2016-08-06 01:29:43 -07:00
David Foucher
d141182333
Merge remote-tracking branch 'upstream/master'
2016-07-30 12:52:37 +02:00
Michael Lazar
0dbb3459ed
Added tests for the open_link method.
2016-07-26 00:43:42 -07:00
David Foucher
94dc86f915
Merge remote-tracking branch 'upstream/master'
...
Refactoring
2016-07-24 01:27:11 +02:00
Michael Lazar
b95c4448af
Merge remote-tracking branch 'origin/master' into woorst-more_listings
...
Conflicts:
rtv/rtv.cfg
tests/test_subreddit.py
2016-07-21 14:21:34 -07:00
Michael Lazar
9cfa44c726
Minor style changes.
2016-07-20 21:28:24 -07:00
mardiqwop
1dbcf22742
Added tests for subreddit.py's new show_frontpage. Refactored getters and setters.
2016-07-20 16:02:34 -04:00
woorst
07aa3c5225
Correct /r/me to /u/me
2016-07-18 16:05:37 -05:00
Michael Lazar
e30d53c49e
Merge pull request #243 from michael-lazar/handle_xpost_better
...
Handle xpost better
2016-07-08 00:37:55 -07:00
Michael Lazar
d26097e398
xposts should now work for subreddits.
2016-07-08 00:33:34 -07:00
Michael Lazar
42d342f175
Changed /r/me to "My Submissions" in page header, added test.
2016-07-07 17:44:35 -07:00
Michael Lazar
8529b4a313
Fixed another test.
2016-06-23 23:08:30 -07:00
Michael Lazar
d81c981dbf
Updated tests. Updated log format.
2016-06-23 22:50:12 -07:00
Michael Lazar
c24c4669a4
Fixed tests.
2015-12-09 01:41:37 -08:00
Michael Lazar
329bfae1ec
Added unit tests for banner.
2015-12-09 01:34:55 -08:00
Michael Lazar
cefdfb3290
Tweaked exception wording.
2015-12-08 01:09:56 -08:00
Michael Lazar
8fd8dc549e
More pylint fixes, added pylint to the build process.
2015-12-05 01:51:05 -08:00