-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add storage mode info * Update mg version * Add integration test for storage mode switch * black
- Loading branch information
1 parent
d15aca1
commit 2b8e32a
Showing
4 changed files
with
39 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import pytest | ||
from gqlalchemy.exceptions import GQLAlchemyDatabaseError | ||
from gqlalchemy import create | ||
|
||
|
||
def test_switch_to_on_disk(memgraph): | ||
create().node(labels="Person", name="Leslie").execute() | ||
|
||
with pytest.raises(GQLAlchemyDatabaseError): | ||
memgraph.set_storage_mode("ON_DISK_TRANSACTIONAL") |
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,7 @@ | ||
def test_get_storage_mode(memgraph): | ||
assert memgraph.get_storage_mode() == "IN_MEMORY_TRANSACTIONAL" | ||
|
||
|
||
def test_set_storage_mode(memgraph): | ||
memgraph.set_storage_mode("IN_MEMORY_ANALYTICAL") | ||
assert memgraph.get_storage_mode() == "IN_MEMORY_ANALYTICAL" |