Correct /r/me to /u/me

This commit is contained in:
woorst
2016-07-18 15:48:26 -05:00
parent 12155c0953
commit 07aa3c5225
2 changed files with 5 additions and 5 deletions

View File

@@ -282,7 +282,7 @@ class Page(object):
sub_name = self.content.name
sub_name = sub_name.replace('/r/front', 'Front Page')
sub_name = sub_name.replace('/r/me', 'My Submissions')
sub_name = sub_name.replace('/u/me', 'My Submissions')
self.term.add_line(window, sub_name, 0, 0)
# Set the terminal title

View File

@@ -216,13 +216,13 @@ def test_subreddit_draw_header(subreddit_page, refresh_token, terminal):
subreddit_page.config.refresh_token = refresh_token
subreddit_page.oauth.authorize()
# /r/me alias should be renamed in the header
subreddit_page.refresh_content(name='/r/me')
# /u/me alias should be renamed in the header
subreddit_page.refresh_content(name='/u/me')
subreddit_page.draw()
text = 'My Submissions'.encode('utf-8')
terminal.stdscr.subwin.addstr.assert_any_call(0, 0, text)
subreddit_page.refresh_content(name='/r/me/new')
subreddit_page.refresh_content(name='/u/me/new')
subreddit_page.draw()
text = 'My Submissions'.encode('utf-8')
terminal.stdscr.subwin.addstr.assert_any_call(0, 0, text)