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 <[email protected]>
  • Loading branch information
VSevagen authored and sduenas committed Oct 13, 2023
1 parent bd7a069 commit 448e0e5
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 448e0e5

Please sign in to comment.