The wild default has appeared! Use errors instead of warnings for unknwon permissions.
This commit is contained in:
Родитель
ef4e2970cc
Коммит
c0cbb126c1
|
@ -125,6 +125,7 @@ class WebappSpec(Spec):
|
|||
"permissions": {
|
||||
"allowed_nodes": PERMISSIONS,
|
||||
"expected_type": dict,
|
||||
"unknown_node_level": "error",
|
||||
"child_nodes": {
|
||||
"*": {
|
||||
"expected_type": dict,
|
||||
|
|
|
@ -664,7 +664,7 @@ class TestWebapps(TestCase):
|
|||
self.set_permissions()
|
||||
self.data["permissions"]["foo"] = {"description": "lol"}
|
||||
self.analyze()
|
||||
self.assert_failed(with_warnings=True)
|
||||
self.assert_failed(with_errors=True)
|
||||
|
||||
def test_permissions_missing_desc(self):
|
||||
self.set_permissions()
|
||||
|
|
Загрузка…
Ссылка в новой задаче