File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
ravendb/tests/jvm_migrated_tests/client_tests/documents_tests/commands_tests Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 5
5
from ravendb .tests .test_base import TestBase
6
6
from ravendb .tools .utils import Utils
7
7
8
+
8
9
class Article :
9
10
def __init__ (
10
11
self ,
@@ -14,6 +15,7 @@ def __init__(
14
15
self .Id = Id
15
16
self .title = title
16
17
18
+
17
19
class TestPutDocumentCommand (TestBase ):
18
20
def setUp (self ):
19
21
super ().setUp ()
@@ -53,9 +55,11 @@ def test_can_put_document_using_command_with_surrogate_pairs(self):
53
55
with self .store .open_session () as session :
54
56
loaded_user = session .load ("users/2" , User )
55
57
self .assertEqual (loaded_user .name , name_with_emojis )
56
-
58
+
57
59
def test_can_put_document_using_command_with_utf_8_chars (self ):
58
- title_with_emojis = "Déposer un CAPITAL SOCIAL : ce que tu dois ABSOLUMENT comprendre avant de lancer une ENTREPRISE 🏦"
60
+ title_with_emojis = (
61
+ "Déposer un CAPITAL SOCIAL : ce que tu dois ABSOLUMENT comprendre avant de lancer une ENTREPRISE 🏦"
62
+ )
59
63
60
64
article = Article (title = title_with_emojis )
61
65
node = Utils .entity_to_dict (article , self .store .conventions .json_default_method )
You can’t perform that action at this time.
0 commit comments