Skip to content

Commit

Permalink
Merge 0fce9e4 into dbc00c1
Browse files Browse the repository at this point in the history
  • Loading branch information
lehone-hp committed Jan 3, 2021
2 parents dbc00c1 + 0fce9e4 commit 3bebdf0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/openwrt/test_default.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import unittest

from openwisp_utils.tests import capture_stdout

from netjsonconfig import OpenWrt
from netjsonconfig.utils import _TabsMixin

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

@capture_stdout()
def test_warning(self):
o = OpenWrt({"luci": [{"unrecognized": True}]})
self.assertEqual(o.render(), '')
Expand Down

0 comments on commit 3bebdf0

Please sign in to comment.