Skip to content

Commit e448a3d

Browse files
committed
Wrap at 80 characters (PEP 8)
1 parent 7a64ca4 commit e448a3d

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pytest_flask/fixtures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def login(self, email, password):
3434
return self.client.post(url_for('login'), data=credentials)
3535
3636
def test_login(self):
37-
assert self.login('vital@example.com', 'pass').status_code == 200
37+
assert self.login('foo@example.com', 'pass').status_code == 200
3838
3939
"""
4040
if request.cls is not None:

tests/test_live_server.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,26 @@ def test_server_is_alive(self, live_server):
1717

1818
def test_server_url(self, live_server):
1919
assert live_server.url() == 'http://localhost:%d' % live_server.port
20-
assert live_server.url('/ping') == 'http://localhost:%d/ping' % live_server.port
20+
assert live_server.url('/ping') == \
21+
'http://localhost:%d/ping' % live_server.port
2122

2223
def test_server_listening(self, live_server):
2324
res = urlopen(live_server.url('/ping'))
2425
assert res.code == 200
2526
assert b'pong' in res.read()
2627

2728
def test_url_for(self, live_server):
28-
assert url_for('ping', _external=True) == 'http://localhost:%s/ping' % live_server.port
29+
assert url_for('ping', _external=True) == \
30+
'http://localhost:%s/ping' % live_server.port
2931

3032
def test_set_application_server_name(self, live_server):
31-
assert live_server.app.config['SERVER_NAME'] == 'localhost:%d' % live_server.port
33+
assert live_server.app.config['SERVER_NAME'] == \
34+
'localhost:%d' % live_server.port
3235

3336
@pytest.mark.options(server_name='example.com:5000')
3437
def test_rewrite_application_server_name(self, live_server):
35-
assert live_server.app.config['SERVER_NAME'] == 'example.com:%d' % live_server.port
38+
assert live_server.app.config['SERVER_NAME'] == \
39+
'example.com:%d' % live_server.port
3640

3741
def test_prevent_starting_live_server(self, appdir):
3842
appdir.create_test_module('''

0 commit comments

Comments
 (0)