diff --git a/qa327_test/frontend/test_r3.py b/qa327_test/frontend/test_r3.py index 8fcc6c1..840704d 100644 --- a/qa327_test/frontend/test_r3.py +++ b/qa327_test/frontend/test_r3.py @@ -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 @@ -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() @@ -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() @@ -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') \ No newline at end of file + self.assert_flash('ticket updated successfully')