aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/tests
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-12-13 15:07:03 +0100
committerGravatar Leon Sandøy <[email protected]>2020-12-13 15:07:03 +0100
commit9f5e2cd4a46349d161d5ec22c65d212a52215c47 (patch)
treed521ea582b4fd060b37270f1169a58ae4cb77e59 /pydis_site/apps/home/tests
parentFix test for HomeView. (diff)
Add a test repo with bad types.
This should restore 100% coverage.
Diffstat (limited to 'pydis_site/apps/home/tests')
-rw-r--r--pydis_site/apps/home/tests/mock_github_api_response.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/pydis_site/apps/home/tests/mock_github_api_response.json b/pydis_site/apps/home/tests/mock_github_api_response.json
index ddbffed8..00f2840d 100644
--- a/pydis_site/apps/home/tests/mock_github_api_response.json
+++ b/pydis_site/apps/home/tests/mock_github_api_response.json
@@ -36,6 +36,13 @@
},
{
"full_name": "python-discord/sir-lancebot",
+ "description": 42,
+ "stargazers_count": "bad types",
+ "language": ["not", "the", "right", "type"],
+ "forks_count": "31"
+ },
+ {
+ "full_name": "python-discord/sir-lancebot",
"description": "test",
"stargazers_count": 97,
"language": "Python",