Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RDBC-670 RavenDB_16321Test::streamingOnIndexThatDoesNotExistShouldThrow
- Loading branch information
1 parent
ab3ecd1
commit fded084
Showing
2 changed files
with
17 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
ravendb/tests/jvm_migrated_tests/issues_tests/test_ravenDB_16321.py
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,16 @@ | ||
from ravendb.documents.queries.misc import Query | ||
from ravendb.exceptions.exceptions import IndexDoesNotExistException | ||
from ravendb.tests.test_base import TestBase | ||
|
||
|
||
class TestRavenDB16321(TestBase): | ||
def setUp(self): | ||
super(TestRavenDB16321, self).setUp() | ||
|
||
def test_streaming_on_index_that_does_not_exist_should_throw(self): | ||
with self.store.open_session() as session: | ||
query = session.query(Query.from_index_name("idkb2")).where_equals("Natalia", "first_name") | ||
|
||
with self.assertRaises(IndexDoesNotExistException): | ||
stream = session.advanced.stream(query) | ||
stream.__next__() |