File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,20 @@ def test_delete(self):
110
110
result = self .jb .read (TEST_BOX_ID , record_id )
111
111
self .assertFalse (result )
112
112
113
+ def test_delete_list (self ):
114
+ data = [{TEST_DATA_KEY_1 : TEST_DATA_VALUE_1 }, {TEST_DATA_KEY_2 : TEST_DATA_VALUE_2 }]
115
+ json_data = self .jb .write (data , TEST_BOX_ID )
116
+ self .assertIsNotNone (json_data )
117
+ self .assertEqual (json_data [0 ][TEST_DATA_KEY_1 ], TEST_DATA_VALUE_1 )
118
+
119
+ record_ids = self .jb .get_record_id (json_data )
120
+
121
+ json_data = self .jb .delete (TEST_BOX_ID , record_ids )
122
+ self .assertIsNotNone (json_data )
123
+
124
+ result = self .jb .read (TEST_BOX_ID , record_ids [0 ])
125
+ self .assertFalse (result )
126
+
113
127
114
128
if __name__ == '__main__' :
115
129
unittest .main ()
You can’t perform that action at this time.
0 commit comments