tests.test_hackernews

Module Contents

Functions

test_hackernews

Test HackerNews URL matching.

test_hackernews_fetch

Test basic functionality of the HackerNews fetcher. This doesn’t use the Celery task queue.

test_expand_data

Test a 2-step process where we first fetch the content of the HN link, and then expand the DB by moving the referred-to link as main URL for the twig and the original HN link as a related link.

API

tests.test_hackernews.test_hackernews()[source]

Test HackerNews URL matching.

tests.test_hackernews.test_hackernews_fetch()[source]

Test basic functionality of the HackerNews fetcher. This doesn’t use the Celery task queue.

tests.test_hackernews.test_expand_data()[source]

Test a 2-step process where we first fetch the content of the HN link, and then expand the DB by moving the referred-to link as main URL for the twig and the original HN link as a related link.