Tests: skip_alert() converted to the fixture.
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user