python.py (1695:48cd8f20dea4) python.py (1697:73a335d2911d)
1import os
2import shutil
3from urllib.parse import quote
4
5import pytest
6from conftest import option
7from unit.applications.proto import TestApplicationProto
8

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

37 app = {
38 "type": self.get_application_type(),
39 "processes": kwargs.pop('processes', {"spare": 0}),
40 "path": script_path,
41 "working_directory": script_path,
42 "module": module,
43 }
44
1import os
2import shutil
3from urllib.parse import quote
4
5import pytest
6from conftest import option
7from unit.applications.proto import TestApplicationProto
8

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

37 app = {
38 "type": self.get_application_type(),
39 "processes": kwargs.pop('processes', {"spare": 0}),
40 "path": script_path,
41 "working_directory": script_path,
42 "module": module,
43 }
44
45 for attr in ('callable', 'home', 'limits', 'path', 'threads'):
45 for attr in ('callable', 'home', 'limits', 'path', 'protocol',
46 'threads'):
46 if attr in kwargs:
47 app[attr] = kwargs.pop(attr)
48
49 self._load_conf(
50 {
51 "listeners": {
52 "*:7080": {"pass": "applications/" + quote(name, '')}
53 },
54 "applications": {name: app},
55 },
56 **kwargs
57 )
47 if attr in kwargs:
48 app[attr] = kwargs.pop(attr)
49
50 self._load_conf(
51 {
52 "listeners": {
53 "*:7080": {"pass": "applications/" + quote(name, '')}
54 },
55 "applications": {name: app},
56 },
57 **kwargs
58 )