@@ -99,10 +99,10 @@ def test_box_bulk():
99
99
ob = load_empty_test_objectbox ()
100
100
box = objectbox .Box (ob , TestEntity )
101
101
102
- box .put (TestEntity ("first" ))
102
+ box .put (TestEntity (str = "first" ))
103
103
104
- objects = [TestEntity ("second" ), TestEntity ("third" ),
105
- TestEntity ("fourth" ), box .get (1 )]
104
+ objects = [TestEntity (str = "second" ), TestEntity (str = "third" ),
105
+ TestEntity (str = "fourth" ), box .get (1 )]
106
106
box .put (objects )
107
107
assert box .count () == 4
108
108
assert objects [0 ].id == 2
@@ -185,7 +185,6 @@ def test_datetime():
185
185
186
186
187
187
def test_flex ():
188
-
189
188
def test_put_get (object : TestEntity , box : objectbox .Box , property ):
190
189
object .flex = property
191
190
id = box .put (object )
@@ -221,7 +220,7 @@ def test_put_get(object: TestEntity, box: objectbox.Box, property):
221
220
222
221
# Update to dict
223
222
test_put_get (object , box , {"a" : 1 , "b" : 2 })
224
-
223
+
225
224
# Update to bool
226
225
test_put_get (object , box , True )
227
226
@@ -252,4 +251,4 @@ def test_flex_dict():
252
251
assert id == object .id
253
252
read = box .get (object .id )
254
253
assert read .flex_dict == object .flex_dict
255
- assert read .flex_int == object .flex_int
254
+ assert read .flex_int == object .flex_int
0 commit comments