More cassettes.
This commit is contained in:
1446
tests/cassettes/test_subreddit_open.yaml
Normal file
1446
tests/cassettes/test_subreddit_open.yaml
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -101,6 +101,7 @@ def test_subreddit_open(subreddit_page, terminal, config):
|
|||||||
config.history.add.assert_called_with(data['url_full'])
|
config.history.add.assert_called_with(data['url_full'])
|
||||||
|
|
||||||
# Open the selected link externally
|
# Open the selected link externally
|
||||||
|
data = subreddit_page.content.get(subreddit_page.nav.absolute_index)
|
||||||
with mock.patch.object(terminal, 'open_link'), \
|
with mock.patch.object(terminal, 'open_link'), \
|
||||||
mock.patch.object(config.history, 'add'):
|
mock.patch.object(config.history, 'add'):
|
||||||
data['url_type'] = 'external'
|
data['url_type'] = 'external'
|
||||||
@@ -109,6 +110,7 @@ def test_subreddit_open(subreddit_page, terminal, config):
|
|||||||
config.history.add.assert_called_with(data['url_full'])
|
config.history.add.assert_called_with(data['url_full'])
|
||||||
|
|
||||||
# Open the selected link within rtv
|
# Open the selected link within rtv
|
||||||
|
data = subreddit_page.content.get(subreddit_page.nav.absolute_index)
|
||||||
with mock.patch.object(subreddit_page, 'open_submission'), \
|
with mock.patch.object(subreddit_page, 'open_submission'), \
|
||||||
mock.patch.object(config.history, 'add'):
|
mock.patch.object(config.history, 'add'):
|
||||||
data['url_type'] = 'selfpost'
|
data['url_type'] = 'selfpost'
|
||||||
|
|||||||
Reference in New Issue
Block a user