Skip to content

Commit 61ae619

Browse files
committed
Fixing tests
1 parent 77886bc commit 61ae619

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_documents.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Meta:
3838
@registry.register_document
3939
class CarDocument(DocType):
4040
color = fields.TextField()
41-
type = fields.StringField()
41+
type = fields.TextField()
4242

4343
def prepare_color(self, instance):
4444
return "blue"
@@ -111,8 +111,8 @@ def test_duplicate_field_names_not_allowed(self):
111111
with self.assertRaises(RedeclaredFieldError):
112112
@registry.register_document
113113
class CarDocument(DocType):
114-
color = fields.StringField()
115-
name = fields.StringField()
114+
color = fields.TextField()
115+
name = fields.TextField()
116116

117117
class Django:
118118
fields = ['name']
@@ -310,7 +310,7 @@ def test_init_prepare_correct(self):
310310
expect = {
311311
'color': ("<class 'django_elasticsearch_dsl.fields.TextField'>",
312312
("<class 'method'>", "<type 'instancemethod'>")), # py3, py2
313-
'type': ("<class 'django_elasticsearch_dsl.fields.StringField'>",
313+
'type': ("<class 'django_elasticsearch_dsl.fields.TextField'>",
314314
("<class 'functools.partial'>","<type 'functools.partial'>")),
315315
'name': ("<class 'django_elasticsearch_dsl.fields.TextField'>",
316316
("<class 'functools.partial'>","<type 'functools.partial'>")),

0 commit comments

Comments
 (0)