Skip to content

Commit

Permalink
followed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ted537 committed Nov 17, 2020
1 parent 598a748 commit ed3eb72
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions qa327_test/frontend/test_r3.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
'''

from unittest.mock import patch
from seleniumbase import BaseCase
from werkzeug.security import generate_password_hash

from qa327_test.conftest import base_url
from qa327.models import User
from qa327_test.frontend.geek_base import GeekBaseCase, TEST_USER

# Moch some sample tickets
Expand Down Expand Up @@ -102,7 +99,7 @@ def test_update_form(self, *_):
self.assert_element('#update-ticket-expiration-date')

@patch('qa327.backend.get_user', return_value=TEST_USER)
@patch('qa327.backend.sell_ticket',return_value='ticket sold successfully')
@patch('qa327.backend.sell_ticket', return_value='ticket sold successfully')
def test_sell_posts(self, *_):
'''see r3.9'''
self.login_test_user()
Expand All @@ -115,7 +112,7 @@ def test_sell_posts(self, *_):
self.assert_flash('ticket sold successfully')

@patch('qa327.backend.get_user', return_value=TEST_USER)
@patch('qa327.backend.buy_ticket',return_value='ticket bought successfully')
@patch('qa327.backend.buy_ticket', return_value='ticket bought successfully')
def test_buy_posts(self, *_):
'''see r3.10'''
self.login_test_user()
Expand All @@ -136,4 +133,4 @@ def test_update_posts(self, *_):
self.input('#update-ticket-price', 'dont-care')
self.input('#update-ticket-expiration-date', 'dont-care')
self.click('#update-submit')
self.assert_flash('ticket updated successfully')
self.assert_flash('ticket updated successfully')

0 comments on commit ed3eb72

Please sign in to comment.