Skip to content

Commit e5581fe

Browse files
committed
RDBC-644 BulkInsertsTest::shouldNotAcceptIdsEndingWithPipeLine
1 parent 2f0c386 commit e5581fe

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ravendb/tests/jvm_migrated_tests/client_tests/test_bulk_inserts.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,13 @@ def test_simple_bulk_insert_should_work(self):
4141
self.assertEqual("Jane Doe", doc2.name)
4242
self.assertEqual("Mega John", doc3.name)
4343
self.assertEqual("Mega Jane", doc4.name)
44+
45+
def test_should_not_acept_ids_ending_with_pipe_line(self):
46+
with self.store.bulk_insert() as bulk_insert:
47+
self.assertRaisesWithMessage(
48+
bulk_insert.store,
49+
RuntimeError,
50+
"Document ids cannot end with '|', but was called with foobars|",
51+
FooBar(),
52+
"foobars|",
53+
)

0 commit comments

Comments
 (0)