Correct /r/me to /u/me
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
terminal.stdscr.subwin.addstr.assert_any_call(0, 0, text)
|
||||
|
||||
Reference in New Issue
Block a user