summaryrefslogtreecommitdiffhomepage
path: root/test/test_upstreams_rr.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/test_upstreams_rr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_upstreams_rr.py b/test/test_upstreams_rr.py
index 324c93cb..2bb23be0 100644
--- a/test/test_upstreams_rr.py
+++ b/test/test_upstreams_rr.py
@@ -1,6 +1,7 @@
import os
import re
+import pytest
from unit.applications.lang.python import TestApplicationPython
from unit.option import option
@@ -8,7 +9,8 @@ from unit.option import option
class TestUpstreamsRR(TestApplicationPython):
prerequisites = {'modules': {'python': 'any'}}
- def setup_method(self):
+ @pytest.fixture(autouse=True)
+ def setup_method_fixture(self):
assert 'success' in self.conf(
{
"listeners": {