Skip to content

Commit 1a8a68a

Browse files
committed
Fix IDs and UIDs #6
1 parent d8f5f96 commit 1a8a68a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def load_empty_test_objectbox(name: str = "") -> objectbox.ObjectBox:
2525
model = objectbox.Model()
2626
from objectbox.model import IdUid
2727
model.entity(TestEntity, last_property_id=IdUid(20, 1020))
28-
model.last_entity_id = IdUid(1, 1)
28+
model.last_entity_id = IdUid(2, 2)
2929

3030
db_name = test_dir if len(name) == 0 else test_dir + "/" + name
3131

@@ -35,7 +35,7 @@ def load_empty_test_objectbox(name: str = "") -> objectbox.ObjectBox:
3535
def load_empty_test_datetime(name: str = "") -> objectbox.ObjectBox:
3636
model = objectbox.Model()
3737
from objectbox.model import IdUid
38-
model.entity(TestEntityDatetime, last_property_id=IdUid(3, 1003))
38+
model.entity(TestEntityDatetime, last_property_id=IdUid(3, 2003))
3939
model.last_entity_id = IdUid(2, 2)
4040

4141
db_name = test_dir if len(name) == 0 else test_dir + "/" + name

tests/model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ def __init__(self, string: str = ""):
3232

3333
@Entity(id=2, uid=2)
3434
class TestEntityDatetime:
35-
id = Id(id=1, uid=1001)
36-
date = Property(datetime, type=PropertyType.date, id=2, uid=1002)
37-
date_nano = Property(datetime, type=PropertyType.dateNano, id=3, uid=1003)
35+
id = Id(id=1, uid=2001)
36+
date = Property(datetime, type=PropertyType.date, id=2, uid=2002)
37+
date_nano = Property(datetime, type=PropertyType.dateNano, id=3, uid=2003)
3838

3939
def __init__(self, string: str = ""):
4040
self.str = string

0 commit comments

Comments
 (0)