File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ def load(cls, object: dict):
184
184
185
185
def save (self , * args , ** kwargs ) -> "DFIQBase" :
186
186
self .modified = now ()
187
+ self .dfiq_yaml = self .to_yaml ()
187
188
return super ().save (* args , ** kwargs )
188
189
189
190
@classmethod
Original file line number Diff line number Diff line change @@ -313,6 +313,7 @@ def test_dfiq_patch_object(self):
313
313
self .assertEqual (len (data ["approaches" ][2 ]["steps" ]), 1 )
314
314
self .assertEqual (data ["approaches" ][2 ]["steps" ][0 ]["type" ], "opensearch-query" )
315
315
self .assertEqual (data ["approaches" ][2 ]["steps" ][0 ]["value" ], "***" )
316
+ self .assertNotIn ("mock" , data ["dfiq_yaml" ])
316
317
317
318
def test_dfiq_patch_updates_parents (self ) -> None :
318
319
scenario1 = dfiq .DFIQScenario (
You can’t perform that action at this time.
0 commit comments