From 5fe745537fdd2022cda8c5def3bbfeeb5d53587f Mon Sep 17 00:00:00 2001 From: csparks Date: Sun, 8 Sep 2019 01:04:05 +0000 Subject: [PATCH] changed variable names in tests/test_linkedin_links.py --- tests/discovery/test_linkedin_links.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/discovery/test_linkedin_links.py b/tests/discovery/test_linkedin_links.py index fea9eb12..3d35d295 100644 --- a/tests/discovery/test_linkedin_links.py +++ b/tests/discovery/test_linkedin_links.py @@ -17,12 +17,12 @@ class TestGetLinks(object): def test_links_linkedin(self): dir_path = os.path.dirname(os.path.realpath(__file__)) - f = open(dir_path + "/test_linkedin_links.txt").read() + mock_response = open(dir_path + "/test_linkedin_links.txt").read() reg_links = re.compile(r"url=https:\/\/www\.linkedin.com(.*?)&") - temp = reg_links.findall(f) + temp = reg_links.findall(mock_response) resul = [] - for x in temp: - y = x.replace("url=", "") + for regex_item in temp: + stripped_url = regex_item.replace("url=", "") resul.append("https://www.linkedin.com" + y) assert set(resul)