diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2020-12-08 14:37:33 +0000 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2020-12-08 14:37:33 +0000 |
commit | b2e767819f04153944d525ef8d97d2f3a7a9af74 (patch) | |
tree | 29748112e707e1cdd3cb1b556a3f437114e5898a /test/test_node_websockets.py | |
parent | 8f916285639d7f9aac9ef03cace5e4dcbcca70cd (diff) | |
download | unit-b2e767819f04153944d525ef8d97d2f3a7a9af74.tar.gz unit-b2e767819f04153944d525ef8d97d2f3a7a9af74.tar.bz2 |
Tests: skip_alert() converted to the fixture.
Diffstat (limited to 'test/test_node_websockets.py')
-rw-r--r-- | test/test_node_websockets.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_node_websockets.py b/test/test_node_websockets.py index 84eb4c42..d7444bf7 100644 --- a/test/test_node_websockets.py +++ b/test/test_node_websockets.py @@ -3,7 +3,6 @@ import time import pytest -from conftest import skip_alert from unit.applications.lang.node import TestApplicationNode from unit.applications.websockets import TestApplicationWebsocket from unit.option import option @@ -14,7 +13,8 @@ class TestNodeWebsockets(TestApplicationNode): ws = TestApplicationWebsocket() - def setup_method(self): + @pytest.fixture(autouse=True) + def setup_method_fixture(self, request, skip_alert): assert 'success' in self.conf( {'http': {'websocket': {'keepalive_interval': 0}}}, 'settings' ), 'clear keepalive_interval' |