Skip to content

Commit e89e7bc

Browse files
committed
add test_gunicorn_arbiter_with_application
1 parent 6defa05 commit e89e7bc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_cli.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
from unittest.mock import patch
22

3+
import gunicorn.arbiter
34
from click.testing import CliRunner
45

56
import teufa.cli
7+
from teufa.server import Application
68

79

810
@patch("teufa.server.Application.run")
@@ -29,3 +31,8 @@ def test_cli_server_dev(MockApplication):
2931
}
3032
)
3133
MockApplication.return_value.run.assert_called_once_with()
34+
35+
36+
def test_gunicorn_arbiter_with_application():
37+
arbiter = gunicorn.arbiter.Arbiter(Application())
38+
arbiter.stop()

0 commit comments

Comments
 (0)