From 2cb74af5b74f250afadf52a1507d1b631ac1b31b Mon Sep 17 00:00:00 2001 From: sevagenv Date: Thu, 15 Apr 2021 18:52:07 +0400 Subject: [PATCH] [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 --- tests/test_cocom.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_cocom.py b/tests/test_cocom.py index c9db3f30d..910058119 100644 --- a/tests/test_cocom.py +++ b/tests/test_cocom.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"""