Skip to content

Commit 9f41f20

Browse files
ivahnenkoAnnagreenrobot
authored andcommitted
Fix index test #14
1 parent 61edbe6 commit 9f41f20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class TestEntity:
1919
float64 = Property(float, type=PropertyType.double, id=8, uid=1008)
2020
float32 = Property(float, type=PropertyType.float, id=9, uid=1009)
2121
bools = Property(np.ndarray, type=PropertyType.boolVector, id=10, uid=1010)
22-
bytes = Property(bytes, id=11, uid=1011)
22+
bytes = Property(bytes, id=11, uid=1011, index_type=IndexType.hash64)
2323
shorts = Property(np.ndarray, type=PropertyType.shortVector, id=12, uid=1012)
2424
chars = Property(np.ndarray, type=PropertyType.charVector, id=13, uid=1013)
2525
ints = Property(np.ndarray, type=PropertyType.intVector, id=14, uid=1014)

tests/test_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def test_index_basics():
2929
assert box._entity.properties[5]._index_type == IndexType.hash
3030

3131
# bytes - index type overwritten to hash64
32-
assert box._entity.properties[9]._index_type == IndexType.hash64
32+
assert box._entity.properties[10]._index_type == IndexType.hash64
3333

3434

3535
def test_index_error():

0 commit comments

Comments
 (0)