Skip to content

Commit

Permalink
[tests] Add test for get_identities
Browse files Browse the repository at this point in the history
Test was missing for get_identities method in colic.py
This commit adds the test to check for the return
value of the function for every item.

Signed-off-by: sevagenv <[email protected]>
  • Loading branch information
VSevagen committed Apr 15, 2021
1 parent efb2f3f commit 3ce6a7f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_colic.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 3ce6a7f

Please sign in to comment.