summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls_sni.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_tls_sni.py')
-rw-r--r--test/test_tls_sni.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_tls_sni.py b/test/test_tls_sni.py
index e918bb20..18b85ed8 100644
--- a/test/test_tls_sni.py
+++ b/test/test_tls_sni.py
@@ -1,6 +1,7 @@
import ssl
import subprocess
+import pytest
from unit.applications.tls import TestApplicationTLS
from unit.option import option
@@ -8,7 +9,8 @@ from unit.option import option
class TestTLSSNI(TestApplicationTLS):
prerequisites = {'modules': {'openssl': 'any'}}
- def setup_method(self):
+ @pytest.fixture(autouse=True)
+ def setup_method_fixture(self):
self._load_conf(
{
"listeners": {"*:7080": {"pass": "routes"}},