Skip to content

Commit 3d53e14

Browse files
authored
[tests] Avoided noisy output during tests #150
Applied `capture_stdout` decorator on noisy tests. Closes #150
1 parent dbc00c1 commit 3d53e14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/openwrt/test_default.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import unittest
22

3+
from openwisp_utils.tests import capture_stdout
4+
35
from netjsonconfig import OpenWrt
46
from netjsonconfig.utils import _TabsMixin
57

@@ -176,6 +178,7 @@ def test_skip(self):
176178
o = OpenWrt({"skipme": {"enabled": True}})
177179
self.assertEqual(o.render(), '')
178180

181+
@capture_stdout()
179182
def test_warning(self):
180183
o = OpenWrt({"luci": [{"unrecognized": True}]})
181184
self.assertEqual(o.render(), '')

0 commit comments

Comments
 (0)