Disable unit tests from deleting refresh token.

This commit is contained in:
Michael Lazar
2016-07-15 21:53:14 -07:00
parent 131e64273a
commit add11e9f22
2 changed files with 13 additions and 2 deletions

View File

@@ -223,6 +223,8 @@ def test_submission_edit(submission_page, terminal, refresh_token):
submission_page.oauth.authorize()
# Try to edit the submission - wrong author
data = submission_page.content.get(submission_page.nav.absolute_index)
data['author'] = 'some other person'
curses.flash.reset_mock()
submission_page.controller.trigger('e')
assert curses.flash.called