aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/tests
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-12-13 15:25:08 +0100
committerGravatar Leon Sandøy <[email protected]>2020-12-13 15:25:08 +0100
commitfa9ef1d0192a372c56a172484654c4103463ea7c (patch)
tree720ad10140b777c97984f7fae8d554136cdcecb1 /pydis_site/apps/home/tests
parentAdd a test repo with bad types. (diff)
Remove pointless try/except.
I don't think we need to check for TypeError here, so that saves us the trouble of testing these lines to appease 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, 0 insertions, 7 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 00f2840d..ddbffed8 100644
--- a/pydis_site/apps/home/tests/mock_github_api_response.json
+++ b/pydis_site/apps/home/tests/mock_github_api_response.json
@@ -36,13 +36,6 @@
},
{
"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",