Skip to content

Commit 15dfe19

Browse files
committed
test configuration field can be empty
1 parent 56d0c00 commit 15dfe19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_resources.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ def checkStringNotEmpty(res,element):
103103
and (element != "") and (element != None)
104104

105105
def checkListNotEmpty(res,element):
106-
assert (res['app'] != "") and (res['kind'] != "") and (type(element) == list) \
107-
and (len(element) > 0)
106+
assert (res['app'] != "") and (res['kind'] != "") and (type(element) == list)
108107

109108
def checkValidJSON(element):
110109
try:
@@ -216,7 +215,7 @@ def testDescriptionElement():
216215

217216
# Tests for configurations elements
218217
# For the resources with configurations:
219-
# Is list not empty
218+
# Is list not empty (configuration list can be empty)
220219
def testConfigurationsElement():
221220
for kind in all_resources:
222221
for res in kind:

0 commit comments

Comments
 (0)