File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ class Comment(document.InnerDoc):
37
37
class DocWithNested (document .Document ):
38
38
comments = field .Nested (Comment )
39
39
40
+ class Index :
41
+ name = 'test-doc-with-nested'
42
+
40
43
class SimpleCommit (document .Document ):
41
44
files = field .Text (multi = True )
42
45
@@ -59,15 +62,27 @@ def _deserialize(self, data):
59
62
class SecretDoc (document .Document ):
60
63
title = SecretField (index = 'no' )
61
64
65
+ class Index :
66
+ name = 'test-secret-doc'
67
+
62
68
class NestedSecret (document .Document ):
63
69
secrets = field .Nested (SecretDoc )
64
70
71
+ class Index :
72
+ name = 'test-nested-secret'
73
+
65
74
class OptionalObjectWithRequiredField (document .Document ):
66
75
comments = field .Nested (properties = {'title' : field .Keyword (required = True )})
67
76
77
+ class Index :
78
+ name = 'test-required'
79
+
68
80
class Host (document .Document ):
69
81
ip = field .Ip ()
70
82
83
+ class Index :
84
+ name = 'test-host'
85
+
71
86
def test_range_serializes_properly ():
72
87
class D (document .Document ):
73
88
lr = field .LongRange ()
You can’t perform that action at this time.
0 commit comments