Skip to content

Commit 448e0e5

Browse files
VSevagensduenas
authored andcommitted
[tests/cocom] Add test for get_identities
Test was missing for get_identities function in cocom.py This commit adds the test to check for the return value of every item. Signed-off-by: sevagenv <[email protected]>
1 parent bd7a069 commit 448e0e5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cocom.py

+8
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ def test_has_identites(self):
4242
enrich_backend = self.connectors[self.connector][2]()
4343
self.assertFalse(enrich_backend.has_identities())
4444

45+
def test_get_identities(self):
46+
"""Test value of get_identities method"""
47+
48+
identities = []
49+
enrich_backend = self.connectors[self.connector][2]()
50+
for item in self.items:
51+
self.assertEqual(enrich_backend.get_identities(item), identities)
52+
4553
def test_items_to_raw(self):
4654
"""Test whether JSON items are properly inserted into ES"""
4755

0 commit comments

Comments
 (0)