Skip to content

Commit

Permalink
Add integration test for storage mode switch
Browse files Browse the repository at this point in the history
  • Loading branch information
katarinasupe committed Jul 9, 2024
1 parent 523f824 commit 806f625
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/integration/test_storage_modes.py
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")

0 comments on commit 806f625

Please sign in to comment.