More cassettes.

This commit is contained in:
Michael Lazar
2016-08-06 01:29:43 -07:00
parent 2e9c661a7b
commit a97b10e162
3 changed files with 5287 additions and 2661 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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'