diff --git a/tests/discovery/test_linkedin_links.py b/tests/discovery/test_linkedin_links.py index f115703c..e9f00e17 100644 --- a/tests/discovery/test_linkedin_links.py +++ b/tests/discovery/test_linkedin_links.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 # coding=utf-8 +from theHarvester.discovery import linkedinsearch import pytest import os import re @@ -7,6 +8,12 @@ class TestGetLinks(object): + def test_get_links(self): + search = linkedinsearch.SearchLinkedin("facebook.com", '100') + search.process() + links = search.get_links() + assert type(links) == list + def test_links_linkedin(self): dir_path = os.path.dirname(os.path.realpath(__file__)) mock_response = open(dir_path + "/test_linkedin_links.txt")