mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Minor cosmetic fixes.
This commit is contained in:
parent
436c9872a2
commit
7fff5afa39
@ -3,17 +3,18 @@
|
||||
# This file is part of gunicorn released under the MIT license.
|
||||
# See the NOTICE for more information.
|
||||
|
||||
import treq
|
||||
|
||||
import glob
|
||||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
import treq
|
||||
|
||||
dirname = os.path.dirname(__file__)
|
||||
reqdir = os.path.join(dirname, "requests", "invalid")
|
||||
httpfiles = glob.glob(os.path.join(reqdir, "*.http"))
|
||||
|
||||
|
||||
@pytest.mark.parametrize("fname", httpfiles)
|
||||
def test_http_parser(fname):
|
||||
env = treq.load_py(os.path.splitext(fname)[0] + ".py")
|
||||
|
||||
@ -3,13 +3,13 @@
|
||||
# This file is part of gunicorn released under the MIT license.
|
||||
# See the NOTICE for more information.
|
||||
|
||||
import t
|
||||
import os
|
||||
from gunicorn.app.base import BaseApplication
|
||||
|
||||
import gunicorn.app.base
|
||||
import gunicorn.arbiter
|
||||
|
||||
|
||||
class PreloadedAppWithEnvSettings(BaseApplication):
|
||||
class PreloadedAppWithEnvSettings(gunicorn.app.base.BaseApplication):
|
||||
"""
|
||||
Simple application that makes use of the 'preload' feature to
|
||||
start the application before spawning worker processes and sets
|
||||
@ -18,11 +18,9 @@ class PreloadedAppWithEnvSettings(BaseApplication):
|
||||
|
||||
def init(self, parser, opts, args):
|
||||
"""No-op"""
|
||||
pass
|
||||
|
||||
def load(self):
|
||||
"""No-op"""
|
||||
pass
|
||||
|
||||
def load_config(self):
|
||||
"""Set the 'preload_app' and 'raw_env' settings in order to verify their
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user