Пример #1
0
 def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Пример #2
0
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Пример #3
0
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None
Пример #4
0
 def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Пример #5
0
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Пример #6
0
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None