test_asgi_lifespan.py (1984:06514cd08a35) test_asgi_lifespan.py (2055:84cb1ec94bae)
1import os
2from distutils.version import LooseVersion
3
4from conftest import unit_stop
5from unit.applications.lang.python import TestApplicationPython
6from unit.option import option
7
8

--- 53 unchanged lines hidden (view full) ---

62 },
63 {
64 "match": {"uri": "/2"},
65 "action": {"pass": "applications/targets/2"},
66 },
67 ],
68 "applications": {
69 "targets": {
1import os
2from distutils.version import LooseVersion
3
4from conftest import unit_stop
5from unit.applications.lang.python import TestApplicationPython
6from unit.option import option
7
8

--- 53 unchanged lines hidden (view full) ---

62 },
63 {
64 "match": {"uri": "/2"},
65 "action": {"pass": "applications/targets/2"},
66 },
67 ],
68 "applications": {
69 "targets": {
70 "type": "python",
70 "type": self.get_application_type(),
71 "processes": {"spare": 0},
72 "working_directory": option.test_dir
73 + "/python/lifespan/empty",
74 "path": option.test_dir + '/python/lifespan/empty',
75 "targets": {
76 "1": {"module": "asgi", "callable": "application"},
77 "2": {
78 "module": "asgi",

--- 43 unchanged lines hidden ---
71 "processes": {"spare": 0},
72 "working_directory": option.test_dir
73 + "/python/lifespan/empty",
74 "path": option.test_dir + '/python/lifespan/empty',
75 "targets": {
76 "1": {"module": "asgi", "callable": "application"},
77 "2": {
78 "module": "asgi",

--- 43 unchanged lines hidden ---