File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ class MultiScanResultSchema(BaseSchema):
324
324
scan_results = fields .List (
325
325
fields .Nested (ScanResultSchema ),
326
326
required = True ,
327
- validates = validate .Length (min = 1 ),
327
+ validate = validate .Length (min = 1 ),
328
328
)
329
329
330
330
@post_load
Original file line number Diff line number Diff line change @@ -45,7 +45,27 @@ def test_document_model(self):
45
45
(
46
46
MultiScanResultSchema ,
47
47
MultiScanResult ,
48
- {"scan_results" : [], "type" : "hello" },
48
+ {
49
+ "scan_results" : [
50
+ {
51
+ "policy_break_count" : 1 ,
52
+ "policies" : ["pol" ],
53
+ "policy_breaks" : [
54
+ {
55
+ "type" : "break" ,
56
+ "policy" : "mypol" ,
57
+ "matches" : [
58
+ {
59
+ "match" : "hello" ,
60
+ "type" : "hello" ,
61
+ }
62
+ ],
63
+ }
64
+ ],
65
+ }
66
+ ],
67
+ "type" : "hello" ,
68
+ },
49
69
),
50
70
(
51
71
PolicyBreakSchema ,
You can’t perform that action at this time.
0 commit comments