display gold counts on gild comments/submissions
This commit is contained in:
@@ -40,14 +40,14 @@ def test_submission_page_construct(reddit, terminal, config, oauth):
|
||||
|
||||
# Set some special flags to make sure that we can draw them
|
||||
submission_data = page.content.get(-1)
|
||||
submission_data['gold'] = True
|
||||
submission_data['gold'] = 1
|
||||
submission_data['stickied'] = True
|
||||
submission_data['saved'] = True
|
||||
submission_data['flair'] = 'flair'
|
||||
|
||||
# Set some special flags to make sure that we can draw them
|
||||
comment_data = page.content.get(0)
|
||||
comment_data['gold'] = True
|
||||
comment_data['gold'] = 3
|
||||
comment_data['stickied'] = True
|
||||
comment_data['saved'] = True
|
||||
comment_data['flair'] = 'flair'
|
||||
|
||||
@@ -25,7 +25,7 @@ def test_terminal_properties(terminal, config):
|
||||
assert isinstance(terminal.up_arrow, six.text_type)
|
||||
assert isinstance(terminal.down_arrow, six.text_type)
|
||||
assert isinstance(terminal.neutral_arrow, six.text_type)
|
||||
assert isinstance(terminal.guilded, six.text_type)
|
||||
assert isinstance(terminal.gilded, six.text_type)
|
||||
|
||||
terminal._display = None
|
||||
with mock.patch('rtv.terminal.sys') as sys, \
|
||||
|
||||
Reference in New Issue
Block a user