Tests: skip_alert() converted to the fixture.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import pytest
|
||||
|
||||
from conftest import skip_alert
|
||||
from unit.applications.proto import TestApplicationProto
|
||||
from unit.option import option
|
||||
|
||||
@@ -366,7 +365,7 @@ class TestRouting(TestApplicationProto):
|
||||
|
||||
assert self.get()['status'] == 200, 'route match absent'
|
||||
|
||||
def test_routes_route_action_absent(self):
|
||||
def test_routes_route_action_absent(self, skip_alert):
|
||||
skip_alert(r'failed to apply new conf')
|
||||
|
||||
assert 'error' in self.conf(
|
||||
@@ -755,7 +754,7 @@ class TestRouting(TestApplicationProto):
|
||||
'routes/main'
|
||||
), 'route edit configure 9'
|
||||
|
||||
def test_match_edit(self):
|
||||
def test_match_edit(self, skip_alert):
|
||||
skip_alert(r'failed to apply new conf')
|
||||
|
||||
self.route_match({"method": ["GET", "POST"]})
|
||||
@@ -1352,7 +1351,7 @@ class TestRouting(TestApplicationProto):
|
||||
assert self.get(url='/?var2=val2')['status'] == 404, 'arr 7'
|
||||
assert self.get(url='/?var3=foo')['status'] == 200, 'arr 8'
|
||||
|
||||
def test_routes_match_arguments_invalid(self):
|
||||
def test_routes_match_arguments_invalid(self, skip_alert):
|
||||
# TODO remove it after controller fixed
|
||||
skip_alert(r'failed to apply new conf')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user