From 3ce6a7fe0af3e14380a213fb0469a692d0cdf2c5 Mon Sep 17 00:00:00 2001 From: sevagenv Date: Thu, 15 Apr 2021 19:11:03 +0400 Subject: [PATCH] [tests] Add test for get_identities 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 --- tests/test_colic.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_colic.py b/tests/test_colic.py index c4e4b8a20..f73f1c31c 100644 --- a/tests/test_colic.py +++ b/tests/test_colic.py @@ -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"""