Skip to content

Commit 725cae2

Browse files
committed
Resolve DeprecationWarning in tests/test_blob.py::test_insert_longblob
1 parent fd53931 commit 725cae2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_blob.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ def test_insert_longblob(schema_any):
191191
)
192192
dj.conn().query(query_32_blob).fetchall()
193193
dj.blob.use_32bit_dims = True
194-
assert (Longblob & "id=1").fetch1() == {
194+
fetched = (Longblob & "id=1").fetch1()
195+
expected = {
195196
"id": 1,
196197
"data": np.rec.array(
197198
[
@@ -207,6 +208,8 @@ def test_insert_longblob(schema_any):
207208
dtype=[("hits", "O"), ("sides", "O"), ("tasks", "O"), ("stage", "O")],
208209
),
209210
}
211+
assert fetched['id'] == expected['id']
212+
assert np.array_equal(fetched['data'], expected['data'])
210213
(Longblob & "id=1").delete()
211214
dj.blob.use_32bit_dims = False
212215

0 commit comments

Comments
 (0)