Skip to content

Commit 75dad73

Browse files
honzakral0bsearch
authored andcommitted
Test for 929
1 parent a2c2579 commit 75dad73

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test_elasticsearch_dsl/test_document.py

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ class OptionalObjectWithRequiredField(document.Document):
6868
class Host(document.Document):
6969
ip = field.Ip()
7070

71+
def test_document_can_redefine_doc_type():
72+
class D(document.Document):
73+
class Meta:
74+
doc_type = 'not-doc'
75+
class Index:
76+
doc_type = 'not-doc'
77+
7178
def test_ip_address_serializes_properly():
7279
host = Host(ip=ipaddress.IPv4Address(u'10.0.0.1'))
7380

0 commit comments

Comments
 (0)