An open source, non-profit web search engine
Update tests for changed API
Daoud Clarke0b54f39549c9
diff --git a/test/test_update_urls.py b/test/test_update_urls.pyindex 1e89acd..f201939 100644--- a/test/test_update_urls.py+++ b/test/test_update_urls.py@@ -1,5 +1,6 @@from collections import defaultdict+from mwmbl.crawler.batch import Linkfrom mwmbl.indexer.update_urls import process_link@@ -12,7 +13,7 @@ def test_process_link_normal():process_link(user_id_hash="abc123",crawled_page_domain="somewhere.com",- link="https://somesite.com/something.html",+ link=Link(url="https://somesite.com/something.html", link_type="nav"),timestamp=1234,url_timestamps=url_timestamps,url_users=url_users,@@ -32,7 +33,7 @@ def test_process_link_excludes_porn():process_link(user_id_hash="abc123",crawled_page_domain="somewhere.com",- link="https://somepornsite.com/something.html",+ link=Link(url="https://somepornsite.com/something.html", link_type="content"),timestamp=1234,url_timestamps=url_timestamps,url_users=url_users,