Skip to content

Commit

Permalink
[tests/cocom] Add test for get_identities
Browse files Browse the repository at this point in the history
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 <sevagenv@gmail.com>
  • Loading branch information
VSevagen committed Apr 15, 2021
1 parent efb2f3f commit 2cb74af
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_cocom.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ def test_has_identites(self):
enrich_backend = self.connectors[self.connector][2]()
self.assertFalse(enrich_backend.has_identities())

def test_get_identities(self):
"""Test value of get_identities method"""

identities = []
enrich_backend = self.connectors[self.connector][2]()
for item in self.items:
self.assertEqual(enrich_backend.get_identities(item), identities)

def test_items_to_raw(self):
"""Test whether JSON items are properly inserted into ES"""

Expand Down

0 comments on commit 2cb74af

Please sign in to comment.