File tree Expand file tree Collapse file tree
ravendb/tests/issue_tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 - name : Install embedded RavenDB
7676 run : pip install ravendb-embedded
7777
78+ - name : Install zstandard
79+ run : pip install zstandard
80+
7881 - name : Run certifi script
7982 run : python ./.github/workflows/add_ca.py
8083
Original file line number Diff line number Diff line change 1+ from ravendb .tests .test_base import TestBase
2+
3+
4+ class TestDocument :
5+ def __init__ (self , name : str = None ):
6+ self .name = name
7+
8+
9+ class TestRDBC940 (TestBase ):
10+ def setUp (self ):
11+ super (TestRDBC940 , self ).setUp ()
12+
13+ def test_operations_with_zstandard_imported (self ):
14+ import zstandard
15+
16+ document_id = "test-documents/1"
17+
18+ with self .store .open_session () as session :
19+ test_doc = TestDocument (name = "Test Document" )
20+ session .store (test_doc , document_id )
21+ session .save_changes ()
22+
23+ with self .store .open_session () as session :
24+ loaded_doc = session .load (document_id , TestDocument )
25+
26+ with self .store .open_session () as session :
27+ session .delete (document_id )
28+ session .save_changes ()
You can’t perform that action at this time.
0 commit comments