Skip to content

Commit c1da301

Browse files
safwanrahmanhonzakral
authored andcommitted
fixing tests
1 parent 7b4f258 commit c1da301

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test_elasticsearch_dsl/test_document.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class MyDoc(document.Document):
1818
created_at = field.Date()
1919
inner = field.Object(MyInner)
2020

21-
class Index:
22-
name = 'my-doc'
23-
2421
class MySubDoc(MyDoc):
2522
name = field.Keyword()
2623

@@ -440,7 +437,7 @@ def test_to_dict_is_recursive_and_can_cope_with_multi_values():
440437
} == md.to_dict()
441438

442439
def test_to_dict_ignores_empty_collections():
443-
md = MyDoc(name='', address={}, count=0, valid=False, tags=[])
440+
md = MySubDoc(name='', address={}, count=0, valid=False, tags=[])
444441

445442
assert {'name': '', 'count': 0, 'valid': False} == md.to_dict()
446443

0 commit comments

Comments
 (0)