mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Revert "Add test and update documentation"
This reverts commit eab1256052d7446359fb6f65279f9bebd18fafd4.
This commit is contained in:
parent
9320811f32
commit
473ac62a2b
@ -42,10 +42,6 @@ application specific configuration.
|
|||||||
Loading the config from a Python module requires the ``python:``
|
Loading the config from a Python module requires the ``python:``
|
||||||
prefix.
|
prefix.
|
||||||
|
|
||||||
.. versionchanged:: 19.8
|
|
||||||
Pre-19.4 behavior of loading a config file without a ``python:``
|
|
||||||
prefix is now restored.
|
|
||||||
|
|
||||||
Server Socket
|
Server Socket
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@ -523,10 +523,6 @@ class ConfigFile(Setting):
|
|||||||
.. versionchanged:: 19.4
|
.. versionchanged:: 19.4
|
||||||
Loading the config from a Python module requires the ``python:``
|
Loading the config from a Python module requires the ``python:``
|
||||||
prefix.
|
prefix.
|
||||||
|
|
||||||
.. versionchanged:: 19.8
|
|
||||||
Pre-19.4 behavior of loading a config file without a ``python:``
|
|
||||||
prefix is now restored.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Bind(Setting):
|
class Bind(Setting):
|
||||||
|
|||||||
@ -238,20 +238,6 @@ def test_load_config_module():
|
|||||||
assert app.cfg.proc_name == "fooey"
|
assert app.cfg.proc_name == "fooey"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize("options", [
|
|
||||||
["-c", cfg_module()],
|
|
||||||
["-c", cfg_file()],
|
|
||||||
])
|
|
||||||
def test_load_fallback(options):
|
|
||||||
cmdline = ["prog_name"]
|
|
||||||
cmdline.extend(options)
|
|
||||||
with AltArgs(cmdline):
|
|
||||||
app = NoConfigApp()
|
|
||||||
assert app.cfg.bind == ["unix:/tmp/bar/baz"]
|
|
||||||
assert app.cfg.workers == 3
|
|
||||||
assert app.cfg.proc_name == "fooey"
|
|
||||||
|
|
||||||
|
|
||||||
def test_cli_overrides_config():
|
def test_cli_overrides_config():
|
||||||
with AltArgs(["prog_name", "-c", cfg_file(), "-b", "blarney"]):
|
with AltArgs(["prog_name", "-c", cfg_file(), "-b", "blarney"]):
|
||||||
app = NoConfigApp()
|
app = NoConfigApp()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user