def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None
Esempio n. 4
0
 def test_process_fields_param_list(self):
     assert es.process_fields_param(['foo', 'bar']) == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Esempio n. 5
0
 def test_process_fields_param_string(self):
     assert es.process_fields_param('foo,bar') == {
         '_source_include': ['foo', 'bar', '_type'],
         '_source': True
     }
Esempio n. 6
0
 def test_process_fields_param_no_fields(self):
     assert es.process_fields_param(None) is None