summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-02-05 15:39:11 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-02-05 15:39:11 +0300
commit3faa154223d0e4013bcfc07d71cea5ed671dfdf8 (patch)
treee967006e711e43ab4ad870275784d3a12fe263a6 /test
parentf7195e7016202a50eb8779154e95cdd1bbc58b0f (diff)
downloadunit-3faa154223d0e4013bcfc07d71cea5ed671dfdf8.tar.gz
unit-3faa154223d0e4013bcfc07d71cea5ed671dfdf8.tar.bz2
Tests: adjusted check_version()'s.
Diffstat (limited to 'test')
-rw-r--r--test/test_configuration.py5
-rw-r--r--test/test_php_basic.py5
-rw-r--r--test/test_python_application.py2
-rw-r--r--test/test_python_atexit.py2
-rw-r--r--test/test_python_basic.py5
-rw-r--r--test/test_python_keepalive.py2
-rw-r--r--test/test_python_procman.py2
7 files changed, 16 insertions, 7 deletions
diff --git a/test/test_configuration.py b/test/test_configuration.py
index 700e4aa1..b5b6a179 100644
--- a/test/test_configuration.py
+++ b/test/test_configuration.py
@@ -4,7 +4,10 @@ import unit
class TestUnitConfiguration(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('python')
+ u = unit.TestUnit()
+
+ u.check_modules('python')
+ u.check_version('0.5')
def test_json_leading_zero(self):
self.assertIn('error', self.conf('00'), 'leading zero')
diff --git a/test/test_php_basic.py b/test/test_php_basic.py
index 1487a9c5..884b49ee 100644
--- a/test/test_php_basic.py
+++ b/test/test_php_basic.py
@@ -4,7 +4,10 @@ import unit
class TestUnitBasic(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('php')
+ u = unit.TestUnit()
+
+ u.check_modules('php')
+ u.check_version('0.5')
conf_app = {
"app": {
diff --git a/test/test_python_application.py b/test/test_python_application.py
index 1b99ea44..39493160 100644
--- a/test/test_python_application.py
+++ b/test/test_python_application.py
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.4')
+ u.check_version('0.5')
def conf_with_name(self, name):
self.conf({
diff --git a/test/test_python_atexit.py b/test/test_python_atexit.py
index 4c8a6543..b0cb6c34 100644
--- a/test/test_python_atexit.py
+++ b/test/test_python_atexit.py
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.3')
+ u.check_version('0.5')
def test_python_application(self):
code, name = """
diff --git a/test/test_python_basic.py b/test/test_python_basic.py
index ed0bd738..0c12242f 100644
--- a/test/test_python_basic.py
+++ b/test/test_python_basic.py
@@ -4,7 +4,10 @@ import unit
class TestUnitBasic(unit.TestUnitControl):
def setUpClass():
- unit.TestUnit().check_modules('python')
+ u = unit.TestUnit()
+
+ u.check_modules('python')
+ u.check_version('0.5')
conf_app = {
"app": {
diff --git a/test/test_python_keepalive.py b/test/test_python_keepalive.py
index 55607e9c..4b5d6b5b 100644
--- a/test/test_python_keepalive.py
+++ b/test/test_python_keepalive.py
@@ -7,7 +7,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.4')
+ u.check_version('0.5')
@unittest.expectedFailure
def test_python_keepalive_body(self):
diff --git a/test/test_python_procman.py b/test/test_python_procman.py
index 5d2a5f50..23828263 100644
--- a/test/test_python_procman.py
+++ b/test/test_python_procman.py
@@ -9,7 +9,7 @@ class TestUnitApplication(unit.TestUnitControl):
u = unit.TestUnit()
u.check_modules('python')
- u.check_version('0.3')
+ u.check_version('0.5')
def getWorkerCount(self):
n = 0