Skip to content

Commit 434a6ea

Browse files
committed
cleanup for testing views.
1 parent 546c2e0 commit 434a6ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/ch14_testing/final/tests/account_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from tests.test_client import flask_app
44
import unittest.mock
55

6+
67
def test_example():
78
print("Test example...")
89
assert 1 + 2 == 3
@@ -15,7 +16,7 @@ def test_register_validation_when_valid():
1516
form_data = {
1617
'name': 'Michael',
1718
'email': '[email protected]',
18-
'password': 'a'*6
19+
'password': 'a' * 6
1920
}
2021

2122
with flask_app.test_request_context(path='/account/register', data=form_data):
@@ -37,7 +38,7 @@ def test_register_validation_for_existing_user():
3738
form_data = {
3839
'name': 'Michael',
3940
'email': '[email protected]',
40-
'password': 'a'*6
41+
'password': 'a' * 6
4142
}
4243

4344
with flask_app.test_request_context(path='/account/register', data=form_data):

0 commit comments

Comments
 (0)