Skip to content

Commit ba4ade9

Browse files
committed
[tests/jenkins] Add test for get_identities and get_field_author methods
This commits adds the tests to check for the return value of both get_identities and get_field_author Signed-off-by: sevagenv <[email protected]>
1 parent efb2f3f commit ba4ade9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/test_jenkins.py

+14
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,20 @@ def test_has_identites(self):
4040
enrich_backend = self.connectors[self.connector][2]()
4141
self.assertFalse(enrich_backend.has_identities())
4242

43+
def test_get_field_author(self):
44+
""" Test value of get_field_author """
45+
46+
enrich_backend = self.connectors[self.connector][2]()
47+
self.assertEqual(enrich_backend.get_field_author(), None)
48+
49+
def test_get_identities(self):
50+
"""Test value of get_identities method"""
51+
52+
identities = []
53+
enrich_backend = self.connectors[self.connector][2]()
54+
for item in self.items:
55+
self.assertEqual(enrich_backend.get_identities(item), identities)
56+
4357
def test_items_to_raw(self):
4458
"""Test whether JSON items are properly inserted into ES"""
4559

0 commit comments

Comments
 (0)