-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '20-release-v0-6-0' into 'dev'
Resolve "Release v0.6.0" See merge request objectbox/objectbox-python!14
- Loading branch information
Showing
11 changed files
with
41 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pip | ||
setuptools | ||
wheel | ||
flatbuffers==23.5.26 | ||
pytest>=4.4.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import objectbox | ||
from tests.common import load_empty_test_objectbox | ||
from tests.model import TestEntity | ||
import os.path | ||
import shutil | ||
|
||
def test_inmemory(): | ||
# Expect path for persistent store | ||
db_name = "testdata_persistent" | ||
ob = load_empty_test_objectbox(db_name) | ||
box = objectbox.Box(ob, TestEntity) | ||
object = TestEntity() | ||
id = box.put(object) | ||
assert id == 1 | ||
assert id == object.id | ||
assert os.path.exists(db_name) | ||
del box | ||
ob.close() | ||
shutil.rmtree(db_name) | ||
|
||
# Expect no path for in-memory store | ||
db_name = "memory:testdata" | ||
ob = load_empty_test_objectbox(db_name) | ||
box = objectbox.Box(ob, TestEntity) | ||
object = TestEntity() | ||
id = box.put(object) | ||
assert id == 1 | ||
assert id == object.id | ||
assert not os.path.exists(db_name) |