Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relationships created and deleted in batch-based transaction is not deleted #116

Closed
versae opened this issue Nov 3, 2014 · 0 comments
Closed
Assignees
Labels

Comments

@versae
Copy link
Owner

versae commented Nov 3, 2014

Try this code as a test on neo4jrestclient.tests.test_transactions.TransactionsTestCase:

    def test_transaction_relationships_is_destroyed_after_transaction(self):
        a = self.gdb.nodes.create()
        b = self.gdb.nodes.create()
        with self.gdb.transaction(using_globals=False) as tx1:
            r10 = a.relationships.create("PREV_EVENT", b, tx=tx1)
            c = self.gdb.nodes.create(tx=tx1)
            c.relationships.create("PREV_EVENT", b, tx=tx1)
            a.relationships.create("PREV_EVENT", c, tx=tx1)
            r10.delete(tx=tx1)
        self.assertIsNone(r10)

The relationship r10 is still there after the transaction is executed.

@versae versae added the Bug label Nov 3, 2014
@versae versae self-assigned this Nov 3, 2014
@versae versae closed this as completed in 0660125 Nov 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant