Skip to content

Commit

Permalink
[tests/jenkins] Add test for get_identities and get_field_author methods
Browse files Browse the repository at this point in the history
This commit adds the tests to check for the return
value of both get_identities and get_field_author

Signed-off-by: sevagenv <[email protected]>
  • Loading branch information
VSevagen committed Apr 15, 2021
1 parent efb2f3f commit ca5b117
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/test_jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ def test_has_identites(self):
enrich_backend = self.connectors[self.connector][2]()
self.assertFalse(enrich_backend.has_identities())

def test_get_field_author(self):
""" Test value of get_field_author """

enrich_backend = self.connectors[self.connector][2]()
self.assertEqual(enrich_backend.get_field_author(), None)

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 ca5b117

Please sign in to comment.