Skip to content

Commit

Permalink
Minor modif on tests names
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Apr 21, 2020
1 parent 1aa56d5 commit b108142
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def test_log_config_inifile(ini_log_config):


@pytest.mark.parametrize("log_lvl_passed", log_lvl_passed)
def test_log_level(log_lvl_passed,):
def test_log_level_set_as_str_or_int(log_lvl_passed,):
config = Config(app=asgi_app, log_level=log_lvl_passed)
config.load()
assert config.log_level == log_lvl_passed
Expand Down Expand Up @@ -146,8 +146,8 @@ def test_should_reload_property():


@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="Skipping unix domain socket test on Windows and pypy",
sys.platform.startswith("win") or platform.python_implementation() == "PyPy",
reason="Skipping unix domain tests on Windows and PyPy",
)
def test_config_unix_domain_socket(tmp_path):
uds = tmp_path / "socket"
Expand All @@ -157,7 +157,8 @@ def test_config_unix_domain_socket(tmp_path):


@pytest.mark.skipif(
sys.platform.startswith("win"), reason="Skipping file descriptor test on Windows"
sys.platform.startswith("win") or platform.python_implementation() == "PyPy",
reason="Skipping file descriptor tests on Windows and PyPy",
)
def test_config_file_descriptor():
config = Config(app=asgi_app, fd=1)
Expand All @@ -167,7 +168,7 @@ def test_config_file_descriptor():

@pytest.mark.skipif(
sys.platform.startswith("win") or platform.python_implementation() == "PyPy",
reason="Skipping uds test on Windows",
reason="Skipping unix domain tests on Windows and PyPy",
)
def test_config_rebind_socket():
sock = socket.socket()
Expand Down
Empty file.
1 change: 1 addition & 0 deletions uvicorn/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import logging

from gunicorn.workers.base import Worker

from uvicorn.config import Config
from uvicorn.main import Server

Expand Down

0 comments on commit b108142

Please sign in to comment.