tests.test_github

Module Contents

Functions

test_github

Test GitHub URL matching.

test_github_fetch

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

test_github_fetch_readme

Create twigs that contain org/repo urls and use the GitHub fetcher to access README content using the GitHub API. The results are compared to expected text for known pages.

test_github_tricky_links

Test some “tricky” GitHub links: file doesn’t exist anymore, repo changed name, etc.

API

tests.test_github.test_github()[source]

Test GitHub URL matching.

tests.test_github.test_github_fetch()[source]

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

tests.test_github.test_github_fetch_readme()[source]

Create twigs that contain org/repo urls and use the GitHub fetcher to access README content using the GitHub API. The results are compared to expected text for known pages.

Test some “tricky” GitHub links: file doesn’t exist anymore, repo changed name, etc.