Tests: style.
This commit is contained in:
@@ -5,6 +5,7 @@ import re
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from unit.applications.lang.python import TestApplicationPython
|
||||
from unit.option import option
|
||||
|
||||
@@ -31,7 +32,8 @@ Content-Type: text/html
|
||||
Connection: close
|
||||
custom-header: BLAH
|
||||
|
||||
%s""" % (len(body), body.encode()),
|
||||
%s"""
|
||||
% (len(body), body.encode()),
|
||||
raw=True,
|
||||
)
|
||||
|
||||
@@ -816,7 +818,11 @@ last line: 987654321
|
||||
assert ['/new', *sys_path] == get_path(), 'check path update'
|
||||
|
||||
set_path('["/blah1", "/blah2"]')
|
||||
assert ['/blah1', '/blah2', *sys_path] == get_path(), 'check path array'
|
||||
assert [
|
||||
'/blah1',
|
||||
'/blah2',
|
||||
*sys_path,
|
||||
] == get_path(), 'check path array'
|
||||
|
||||
def test_python_application_path_invalid(self):
|
||||
self.load('path')
|
||||
|
||||
Reference in New Issue
Block a user