diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2021-12-12 21:36:44 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2021-12-12 21:36:44 +0000 |
commit | 9bea8c452ffea1d9ff78a1bc3ce5c4d2f0d6b95f (patch) | |
tree | 17be138c1c40cbbc9be3726a3d35b0a114b94b0d /test/test_routing.py | |
parent | 4b3efcea0dfcc842fb1a0f62b610652323844d35 (diff) | |
download | unit-9bea8c452ffea1d9ff78a1bc3ce5c4d2f0d6b95f.tar.gz unit-9bea8c452ffea1d9ff78a1bc3ce5c4d2f0d6b95f.tar.bz2 |
Tests: fixed type of applications.
Diffstat (limited to 'test/test_routing.py')
-rw-r--r-- | test/test_routing.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_routing.py b/test/test_routing.py index 167d2640..a45d0309 100644 --- a/test/test_routing.py +++ b/test/test_routing.py @@ -1,10 +1,10 @@ # -*- coding: utf-8 -*- import pytest -from unit.applications.proto import TestApplicationProto +from unit.applications.lang.python import TestApplicationPython from unit.option import option -class TestRouting(TestApplicationProto): +class TestRouting(TestApplicationPython): prerequisites = {'modules': {'python': 'any'}} def setup_method(self): @@ -289,7 +289,7 @@ class TestRouting(TestApplicationProto): "listeners": {"*:7080": {"pass": "applications/" + path}}, "applications": { name: { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": option.test_dir + '/python/empty', "working_directory": option.test_dir @@ -313,7 +313,7 @@ class TestRouting(TestApplicationProto): "listeners": {"*:7080": {"pass": "applications/" + path}}, "applications": { name: { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": option.test_dir + '/python/empty', "working_directory": option.test_dir @@ -333,7 +333,7 @@ class TestRouting(TestApplicationProto): "listeners": {"*:7081": {"pass": "applications/empty"}}, "applications": { "empty": { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": option.test_dir + '/python/empty', "working_directory": option.test_dir + '/python/empty', @@ -387,7 +387,7 @@ class TestRouting(TestApplicationProto): { "applications": { "app": { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": "/app", "module": "wsgi", @@ -430,7 +430,7 @@ class TestRouting(TestApplicationProto): { "applications": { "app": { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": "/app", "module": "wsgi", @@ -476,7 +476,7 @@ class TestRouting(TestApplicationProto): "routes": [{"action": {"proxy": "http://127.0.0.1:7081"}}], "applications": { "app": { - "type": "python", + "type": self.get_application_type(), "processes": {"spare": 0}, "path": "/app", "module": "wsgi", |