aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/home/tests
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-05 18:41:21 -0400
committerGravatar S. Co1 <[email protected]>2019-09-05 18:41:21 -0400
commit4e8f0b7484562d174c6654f67e4991e6d7ebcde5 (patch)
tree8dcaca167e965e17ea4c6d21bedf0d5a157f5833 /pydis_site/apps/home/tests
parentMerge pull request #240 from python-discord/update-contrib (diff)
Fix misconfigured flake8 so docstrings are properly linted
Relint
Diffstat (limited to 'pydis_site/apps/home/tests')
-rw-r--r--pydis_site/apps/home/tests/test_repodata_helpers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pydis_site/apps/home/tests/test_repodata_helpers.py b/pydis_site/apps/home/tests/test_repodata_helpers.py
index df1ffd73..61b8e034 100644
--- a/pydis_site/apps/home/tests/test_repodata_helpers.py
+++ b/pydis_site/apps/home/tests/test_repodata_helpers.py
@@ -11,7 +11,7 @@ from pydis_site.apps.home.views import HomeView
def mocked_requests_get(*args, **kwargs) -> "MockResponse": # noqa
- """A mock version of requests.get, so we don't need to call the API every time we run a test"""
+ """A mock version of requests.get, so we don't need to call the API every time we run a test."""
class MockResponse:
def __init__(self, json_data, status_code):
self.json_data = json_data
@@ -61,7 +61,7 @@ class TestRepositoryMetadataHelpers(TestCase):
@mock.patch('requests.get', side_effect=mocked_requests_get)
def test_refresh_stale_metadata(self, _: mock.MagicMock):
- """Test if the _get_repo_data helper will refresh when the data is stale"""
+ """Test if the _get_repo_data helper will refresh when the data is stale."""
repo_data = RepositoryMetadata(
repo_name="python-discord/site",
description="testrepo",